C# Класс 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
Наследование: IHtmlTreeVisitorPattern
Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание

Открытые методы

Метод Описание
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.

Описание методов

Accept() публичный Метод

public Accept ( Func visitor, object param ) : bool
visitor Func
param object
Результат bool

Accept() публичный Метод

public Accept ( IHtmlTreeVisitor visitor, object param ) : bool
visitor IHtmlTreeVisitor
param object
Результат bool

Build() публичный Метод

Main method to build the tree.
public Build ( ) : void
Результат void

Build() публичный Метод

Main method to build a subtree from a text range.
public Build ( ITextRange range ) : void
range ITextRange
Результат void

HtmlTree() публичный Метод

public HtmlTree ( ITextProvider text ) : System
text ITextProvider
Результат System

HtmlTree() публичный Метод

public HtmlTree ( ITextProvider text, IHtmlScriptTypeResolutionService scriptTypeResolution ) : System
text ITextProvider
scriptTypeResolution IHtmlScriptTypeResolutionService
Результат System

HtmlTree() публичный Метод

public HtmlTree ( ITextProvider text, IHtmlScriptTypeResolutionService scriptTypeResolution, IHtmlScriptOrStyleTagNamesService scriptOrStyleTagNameService, ParsingMode parsingMode ) : System
text ITextProvider
scriptTypeResolution IHtmlScriptTypeResolutionService
scriptOrStyleTagNameService IHtmlScriptOrStyleTagNamesService
parsingMode ParsingMode
Результат System

ReflectTextChange() публичный Метод

public ReflectTextChange ( int start, int oldLength, int newLength ) : void
start int
oldLength int
newLength int
Результат void

ReflectTextChanges() публичный Метод

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
Результат void