C# Class Microsoft.Html.Core.Tree.Builder.DefaultHtmlClosureProvider

Default element closure information provider for HTML. Implements IHtmlClosureProviderTextRange which allows passing of ITextProvider + TextRange instead of extracting strings for comparison This is a frequently used class and performance improvement is welcome.
Inheritance: IHtmlClosureProvider, IHtmlClosureProviderTextRange
Afficher le fichier Open project: Microsoft/RTVS Class Usage Examples

Méthodes publiques

Méthode Description
DefaultHtmlClosureProvider ( ) : System
IsImplicitlyClosed ( ITextProvider text, ITextRange name, string &containerElementNames ) : bool

Determines if given element can be implicitly closed like <li> or <td> in HTML"

IsSelfClosing ( ITextProvider text, ITextRange nameRange ) : bool

Determines if given element is self-closing (i.e. does not allow content)

Private Methods

Méthode Description
AddElements ( string addTo, string elementNames ) : void
FindElementName ( ITextProvider text, ITextRange name, string indexArray, bool ignoreCase ) : bool
GetContainerElements ( string elementName ) : string[]
IHtmlClosureProvider ( string name ) : bool
IHtmlClosureProvider ( string name, string &containerElementNames ) : bool

Method Details

DefaultHtmlClosureProvider() public méthode

public DefaultHtmlClosureProvider ( ) : System
Résultat System

IsImplicitlyClosed() public méthode

Determines if given element can be implicitly closed like <li> or <td> in HTML"
public IsImplicitlyClosed ( ITextProvider text, ITextRange name, string &containerElementNames ) : bool
text ITextProvider Text provider
name ITextRange Element name
containerElementNames string
Résultat bool

IsSelfClosing() public méthode

Determines if given element is self-closing (i.e. does not allow content)
public IsSelfClosing ( ITextProvider text, ITextRange nameRange ) : bool
text ITextProvider Text provider
nameRange ITextRange Element name
Résultat bool