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
Afficher le fichier Open project: Microsoft/RTVS Class Usage Examples

Private Properties

Свойство Type Description

Méthodes publiques

Méthode 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 méthode

public Accept ( Func visitor, object param ) : bool
visitor Func
param object
Résultat bool

Accept() public méthode

public Accept ( IHtmlTreeVisitor visitor, object param ) : bool
visitor IHtmlTreeVisitor
param object
Résultat bool

Build() public méthode

Main method to build the tree.
public Build ( ) : void
Résultat void

Build() public méthode

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

HtmlTree() public méthode

public HtmlTree ( ITextProvider text ) : System
text ITextProvider
Résultat System

HtmlTree() public méthode

public HtmlTree ( ITextProvider text, IHtmlScriptTypeResolutionService scriptTypeResolution ) : System
text ITextProvider
scriptTypeResolution IHtmlScriptTypeResolutionService
Résultat System

HtmlTree() public méthode

public HtmlTree ( ITextProvider text, IHtmlScriptTypeResolutionService scriptTypeResolution, IHtmlScriptOrStyleTagNamesService scriptOrStyleTagNameService, ParsingMode parsingMode ) : System
text ITextProvider
scriptTypeResolution IHtmlScriptTypeResolutionService
scriptOrStyleTagNameService IHtmlScriptOrStyleTagNamesService
parsingMode ParsingMode
Résultat System

ReflectTextChange() public méthode

public ReflectTextChange ( int start, int oldLength, int newLength ) : void
start int
oldLength int
newLength int
Résultat void

ReflectTextChanges() public méthode

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
Résultat void