Méthode | Description | |
---|---|---|
Accept ( Func |
||
Accept ( IHtmlTreeVisitor visitor, object parameter ) : bool | ||
AddOrphanedEndTag ( |
||
Contains ( ITextRange range, bool inclusiveTagStart, bool inclusiveTagEnd ) : bool | ||
Contains ( int position ) : bool |
Determines if element contains given position
|
|
ElementEnclosingRange ( ITextRange range, bool inclusiveEnd ) : |
Finds deepest element node which inner range fully encloses given positions
|
|
ElementFromPosition ( int pos ) : |
Finds deepest element node that contains given position
|
|
ElementFromRange ( ITextRange range ) : |
Finds deepest element node that fully encloses given range
|
|
ElementFromRangeAndInclusion ( ITextRange range, bool inclusiveTagStart, bool inclusiveTagEnd ) : |
||
ElementNode ( |
||
GetAttribute ( string attributeName ) : |
Locates element attribute by name using string comparison as specified by tree the element is in.
|
|
GetAttribute ( string attributeName, bool ignoreCase ) : |
Locates element attribute by name
|
|
GetAttribute ( string prefix, string attributeName, bool ignoreCase ) : |
Locates element attribute by prefix and name
|
|
GetAttributeIndex ( string attributeName, bool ignoreCase ) : int |
Locates element attribute by name
|
|
GetChildrenSurroundingRange ( ITextRange range, int &child1, int &child2 ) : void |
Given text range locates previous and next child nodes that surround the range
|
|
GetCommonAncestor ( |
Retrieves node that contains both node1 and node2 ranges. Node1 range must precede node2 in the text buffer
|
|
GetPositionElement ( int position, |
Determines position type and enclosing element node for a given position in the document text.
|
|
GetText ( ITextRange range ) : string | ||
HasPrefix ( ) : bool | ||
IsDocType ( ) : bool |
Determines if element is a DOCTYPE element
|
|
IsScriptBlock ( ) : bool |
Determines if element is a script block
|
|
IsSelfClosing ( ) : bool |
Tells if element is self-closing element like <br>. Does not tell if element is closed by />, use IsShortHand for that.
|
|
IsShorthand ( ) : bool |
Tells if element is a short-hand element ending in />
|
|
IsStyleBlock ( ) : bool |
Determines if element is a style block
|
|
RemoveChild ( int index ) : void | ||
RemoveChildren ( int start, int count ) : void | ||
Shift ( int offset ) : void |
Shifts node start, end and all child elements by the specified offset.
|
|
ShiftStartingFrom ( int start, int offset ) : void |
Shifts node components that are located at or beyond given start point by the specified range
|
Méthode | Description | |
---|---|---|
CompleteElement ( ITextRange closingSequence, bool isClosed, ReadOnlyCollection |
Completes element. Called by tree builder when element is complete: start tag is self-closed or implicitly closed or element is closed by a well-formed end tag or by another tag that is being opened.
|
|
FindTopmostParent ( List |
Given list of end tag names finds topmost element that matches provided end tags
|
|
OpenEndTag ( int position, |
Begins element end tag processing. Called exclusively by tree builder. when it discovers </name sequence.
|
|
ToString ( ) : string |
public Accept ( Func |
||
visitor | Func |
|
parameter | object | |
Résultat | bool |
public Accept ( IHtmlTreeVisitor visitor, object parameter ) : bool | ||
visitor | IHtmlTreeVisitor | |
parameter | object | |
Résultat | bool |
public AddOrphanedEndTag ( |
||
tag | ||
Résultat | void |
public Contains ( ITextRange range, bool inclusiveTagStart, bool inclusiveTagEnd ) : bool | ||
range | ITextRange | |
inclusiveTagStart | bool | |
inclusiveTagEnd | bool | |
Résultat | bool |
public Contains ( int position ) : bool | ||
position | int | Position in a text buffer |
Résultat | bool |
public ElementEnclosingRange ( ITextRange range, bool inclusiveEnd ) : |
||
range | ITextRange | Range to analyze |
inclusiveEnd | bool | If true, element and range may have same end points |
Résultat |
public ElementFromPosition ( int pos ) : |
||
pos | int | Position |
Résultat |
public ElementFromRange ( ITextRange range ) : |
||
range | ITextRange | |
Résultat |
public ElementFromRangeAndInclusion ( ITextRange range, bool inclusiveTagStart, bool inclusiveTagEnd ) : |
||
range | ITextRange | |
inclusiveTagStart | bool | |
inclusiveTagEnd | bool | |
Résultat |
public ElementNode ( |
||
parent | ||
openAngleBracketPosition | int | |
nameToken | ||
maxEnd | int | |
Résultat | System |
public GetAttribute ( string attributeName ) : |
||
attributeName | string | Fully qualified attribute name |
Résultat |
public GetAttribute ( string attributeName, bool ignoreCase ) : |
||
attributeName | string | Fully qualified attribute name |
ignoreCase | bool | True if comparison should be case-insensitive |
Résultat |
public GetAttribute ( string prefix, string attributeName, bool ignoreCase ) : |
||
prefix | string | Namespace prefix |
attributeName | string | Attribute name |
ignoreCase | bool | True if comparison should be case-insensitive |
Résultat |
public GetAttributeIndex ( string attributeName, bool ignoreCase ) : int | ||
attributeName | string | Fully qualified attribute name |
ignoreCase | bool | True if comparison should be case-insensitive |
Résultat | int |
public GetChildrenSurroundingRange ( ITextRange range, int &child1, int &child2 ) : void | ||
range | ITextRange | Text range |
child1 | int | Index of the child node that precedes start of the range |
child2 | int | Index of the child that follows end of the range |
Résultat | void |
public GetCommonAncestor ( |
||
node1 | First node | |
node2 | Second node | |
Résultat |
public GetPositionElement ( int position, |
||
position | int | Position in the document text |
element | Element that contains position | |
attribute | Attribute that contains position (may be null) | |
Résultat | HtmlPositionType |
public GetText ( ITextRange range ) : string | ||
range | ITextRange | |
Résultat | string |
public RemoveChildren ( int start, int count ) : void | ||
start | int | |
count | int | |
Résultat | void |
public ShiftStartingFrom ( int start, int offset ) : void | ||
start | int | Start point |
offset | int | Offset to shift by |
Résultat | void |