C# Class Microsoft.Html.Core.Tree.HtmlTree

HTML Tree.
The tree is static, it does not listen to OnTextChange. If you need dynamic tree, look at HtmlEditorTree in Microsoft.Html.Editor
Inheritance: IHtmlTreeVisitorPattern
Datei anzeigen Open project: Microsoft/RTVS Class Usage Examples

Private Properties

Property Type Description

Public Methods

Method Description
Accept ( Func visitor, object param ) : bool
Accept ( IHtmlTreeVisitor visitor, object param ) : bool
Build ( ) : void

Main method to build the tree.

Build ( ITextRange range ) : void

Main method to build a subtree from a text range.

HtmlTree ( ITextProvider text ) : System
HtmlTree ( ITextProvider text, IHtmlScriptTypeResolutionService scriptTypeResolution ) : System
HtmlTree ( ITextProvider text, IHtmlScriptTypeResolutionService scriptTypeResolution, IHtmlScriptOrStyleTagNamesService scriptOrStyleTagNameService, ParsingMode parsingMode ) : System
ReflectTextChange ( int start, int oldLength, int newLength ) : void
ReflectTextChanges ( IList textChanges ) : void

Updates positions of all elements and attributes in the tree reflecting change made to the source text buffer.

Method Details

Accept() public method

public Accept ( Func visitor, object param ) : bool
visitor Func
param object
return bool

Accept() public method

public Accept ( IHtmlTreeVisitor visitor, object param ) : bool
visitor IHtmlTreeVisitor
param object
return bool

Build() public method

Main method to build the tree.
public Build ( ) : void
return void

Build() public method

Main method to build a subtree from a text range.
public Build ( ITextRange range ) : void
range ITextRange
return void

HtmlTree() public method

public HtmlTree ( ITextProvider text ) : System
text ITextProvider
return System

HtmlTree() public method

public HtmlTree ( ITextProvider text, IHtmlScriptTypeResolutionService scriptTypeResolution ) : System
text ITextProvider
scriptTypeResolution IHtmlScriptTypeResolutionService
return System

HtmlTree() public method

public HtmlTree ( ITextProvider text, IHtmlScriptTypeResolutionService scriptTypeResolution, IHtmlScriptOrStyleTagNamesService scriptOrStyleTagNameService, ParsingMode parsingMode ) : System
text ITextProvider
scriptTypeResolution IHtmlScriptTypeResolutionService
scriptOrStyleTagNameService IHtmlScriptOrStyleTagNamesService
parsingMode ParsingMode
return System

ReflectTextChange() public method

public ReflectTextChange ( int start, int oldLength, int newLength ) : void
start int
oldLength int
newLength int
return void

ReflectTextChanges() public method

Updates positions of all elements and attributes in the tree reflecting change made to the source text buffer.
public ReflectTextChanges ( IList textChanges ) : void
textChanges IList
return void