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

Afficher le fichier Open project: Microsoft/RTVS Class Usage Examples

Méthodes publiques

Méthode Description
IsImplicitlyClosed ( ITextProvider textProvider, ITextRange nameRange, string &containerNames ) : bool

Detemines of element can be implicitly closed (i.e. element does not require closing tag) like <td> Only applies to regular HTML elements. Does not apply to elements with prefixes or namespaces.

IsSelfClosing ( ITextProvider textProvider, ITextRange prefixRange, ITextRange nameRange ) : bool

Determines if element is a self-closing element (i.e. like <br />

RegisterProvider ( string prefix, IHtmlClosureProvider provider ) : bool

Registers closure provides for a particular element prefix (namespace)

Method Details

IsImplicitlyClosed() public méthode

Detemines of element can be implicitly closed (i.e. element does not require closing tag) like <td> Only applies to regular HTML elements. Does not apply to elements with prefixes or namespaces.
public IsImplicitlyClosed ( ITextProvider textProvider, ITextRange nameRange, string &containerNames ) : bool
textProvider ITextProvider Text provider
nameRange ITextRange Range of the element name
containerNames string
Résultat bool

IsSelfClosing() public méthode

Determines if element is a self-closing element (i.e. like <br />
public IsSelfClosing ( ITextProvider textProvider, ITextRange prefixRange, ITextRange nameRange ) : bool
textProvider ITextProvider Text provider
prefixRange ITextRange Text range of the element prefix
nameRange ITextRange Text range of the element name
Résultat bool

RegisterProvider() public méthode

Registers closure provides for a particular element prefix (namespace)
public RegisterProvider ( string prefix, IHtmlClosureProvider provider ) : bool
prefix string Namespace prefix
provider IHtmlClosureProvider Closure information provider
Résultat bool