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.
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