C# Class Microsoft.Html.Core.Tree.Nodes.RootNode

Inheritance: ElementNode
Show file Open project: Microsoft/RTVS Class Usage Examples

Public Methods

Method Description
ElementFromPosition ( int pos ) : ElementNode

Finds deepest element node that contains given position

GetPositionElement ( int position, ElementNode &element, AttributeNode &attribute ) : HtmlPositionType

Determines given position type. Returns element and attribute at this position. Attribute can be null. Return type specifies position as a set of flags HtmlPositionType

GetText ( ITextRange range ) : string
GetText ( int start, int length ) : string
RootNode ( HtmlTree owner ) : System
ShiftStartingFrom ( int start, int offset ) : void

Private Methods

Method Description
ToString ( ) : string

Method Details

ElementFromPosition() public method

Finds deepest element node that contains given position
public ElementFromPosition ( int pos ) : ElementNode
pos int Position
return ElementNode

GetPositionElement() public method

Determines given position type. Returns element and attribute at this position. Attribute can be null. Return type specifies position as a set of flags HtmlPositionType
public GetPositionElement ( int position, ElementNode &element, AttributeNode &attribute ) : HtmlPositionType
position int Position in the document
element ElementNode Element that contains this position
attribute AttributeNode Attribute that contains this position or null of none
return HtmlPositionType

GetText() public method

public GetText ( ITextRange range ) : string
range ITextRange
return string

GetText() public method

public GetText ( int start, int length ) : string
start int
length int
return string

RootNode() public method

public RootNode ( HtmlTree owner ) : System
owner HtmlTree
return System

ShiftStartingFrom() public method

public ShiftStartingFrom ( int start, int offset ) : void
start int
offset int
return void