IMarkupPointer :: Right and IMarkupPointer :: Left 'notes document describes
2013-05-16 17:02
555 查看
MARKUP_CONTEXT_TYPE Enumerated Type
0 out of 1 rated this helpful - Rate this topic
An enumerated type that contains the different options for the IMarkupPointer :: Right and IMarkupPointer :: Left methods.
Syntax
Copy
typedef enum {
CONTEXT_TYPE_None = 0,
CONTEXT_TYPE_Text = 1,
CONTEXT_TYPE_EnterScope =
2
CONTEXT_TYPE_ExitScope =
3,
CONTEXT_TYPE_NoScope = 4
} MARKUP_CONTEXT_TYPE;
Constants
CONTEXT_TYPE_None
There is no markup content next to the markup pointer in the specified direction.
CONTEXT_TYPE_Text
The markup content next to the markup pointer in the specified direction is text.
CONTEXT_TYPE_EnterScope
An element's opening tag is next to the markup pointer in the specified direction.
/ / Here CONTEXT_TYPE_EnterScope
is markup pointer
neighbor elements in the specified direction
of opening tag,
that <xx> (</
xx>) element,
but that is not the
case, CONTEXT_TYPE_EnterScope
represented in a given direction,
into <xx> ...
</ xx>
element or leave this
element.
Example: <xx>
| ... </
xx> (red
vertical line represents
markup pointer) to test if
the left
(Left function that is
called):
HRESULT Left (BOOL fMove, MARKUP_CONTEXT_TYPE * pContext, IHTMLElement ** ppElement, long * pcch, OLECHAR * pchText);
Get to parameter
pContext is CONTEXT_TYPE_ExitScope
a Left is
to promote markup
the Pointer to leave
<xx> ... </
xx> element.
But
Markup pointer <xx> ...
</ xx>
| this position,
then the Left function parameters
pContext is CONTEXT_TYPE_EnterScope.
Conclusion: IMarkupPointer
:: Right /
Left function returns the
pContext determined by their
leave or enter
the element node,
rather than the current direction of movement of
the neighbor is
opening or closing
tag.
撤消修改
Alpha
0 out of 1 rated this helpful - Rate this topic
An enumerated type that contains the different options for the IMarkupPointer :: Right and IMarkupPointer :: Left methods.
Syntax
Copy
typedef enum {
CONTEXT_TYPE_None = 0,
CONTEXT_TYPE_Text = 1,
CONTEXT_TYPE_EnterScope =
2
CONTEXT_TYPE_ExitScope =
3,
CONTEXT_TYPE_NoScope = 4
} MARKUP_CONTEXT_TYPE;
Constants
CONTEXT_TYPE_None
There is no markup content next to the markup pointer in the specified direction.
CONTEXT_TYPE_Text
The markup content next to the markup pointer in the specified direction is text.
CONTEXT_TYPE_EnterScope
An element's opening tag is next to the markup pointer in the specified direction.
/ / Here CONTEXT_TYPE_EnterScope
is markup pointer
neighbor elements in the specified direction
of opening tag,
that <xx> (</
xx>) element,
but that is not the
case, CONTEXT_TYPE_EnterScope
represented in a given direction,
into <xx> ...
</ xx>
element or leave this
element.
Example: <xx>
| ... </
xx> (red
vertical line represents
markup pointer) to test if
the left
(Left function that is
called):
HRESULT Left (BOOL fMove, MARKUP_CONTEXT_TYPE * pContext, IHTMLElement ** ppElement, long * pcch, OLECHAR * pchText);
Get to parameter
pContext is CONTEXT_TYPE_ExitScope
a Left is
to promote markup
the Pointer to leave
<xx> ... </
xx> element.
But
Markup pointer <xx> ...
</ xx>
| this position,
then the Left function parameters
pContext is CONTEXT_TYPE_EnterScope.
Conclusion: IMarkupPointer
:: Right /
Left function returns the
pContext determined by their
leave or enter
the element node,
rather than the current direction of movement of
the neighbor is
opening or closing
tag.
撤消修改
Alpha
相关文章推荐
- div+css - CSS标准 - 8.3 Margin properties: 'margin-top', 'margin-right', 'margin-bottom', 'margin-left', and 'margin' - 8.3边距属性
- cocos2d-x 使用opengl 函数报错 undefined reference to 'glVertexPointer'
- clip:rect('top', 'right', 'bottom', 'left')
- oracle11g在安装时提示"c:\document and setting\用户名\local setting\Temp不足400M的可用磁盘空间'
- New eXtremeDB Financial Edition Version 6.0 Ramps Up Database System's Speed, Scalability and Develo
- What's a Document Type Definition (DTD) and ...
- O'Brien: 11 Predictions for 2011, including Google buys Twitter, Yahoo axes Bartz and Facebook hits the billion mark
- MABDlg.cpp : 实现文件 (QueryInterface,IMarkupServices,IMarkupPointer,IMarkupPointer2)
- Definition of 'Markup'
- Robbie's Notes on File System Security in Linux (and comparison to Windows NT)
- (转)A SQL query walks into a bar and sees two tables. He walks up to them and says 'Can I join you?'
- a declaration cannot be both 'final' and 'dynamic'
- PHPCMS 2008后台 文章发布总是出现phpcms_search' is marked as crashed and should be repaired的问题。
- ASP.NET 创建母版页导致js出现“ 'document.getElementById(...)' 为空或不是对象”错误
- if you want an invitation to her party.you'd better mind your P's and Q's/
- No plugin found for prefix 'jetty' in the current project and in the plugin groups
- the Differences of Fold-left and Fold-right
- angular this vs $scope (How does 'this' and $scope work in AngularJS controllers?)
- var file_upl = document.getElementById('file_upl'); file_upl.select(); var realpath = d
- document.getElementById("divv").style.display = 'none';