Class
AngleSharpDomServices
OfficeIMO.Html.Providers
Selector and HTML serialization services over owned nodes. Performs no network access or script execution.
Inheritance
- object
- AngleSharpDomServices
Usage
Explore 1 API references to this type
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Returned or exposed by 1
- Property AngleSharpDomServices.Instance
Constructors
public AngleSharpDomServices() #Methods
public bool Matches(HtmlElement element, string selector) #Tests one element against a selector.
Parameters
- element OfficeIMO.Html.Dom.HtmlElement
- selector string
Returns
boolpublic IReadOnlyList<HtmlElement> QuerySelectorAll(HtmlNode scope, string selector) #Returns matching descendant elements in document order, using the supplied scope.
Parameters
- scope OfficeIMO.Html.Dom.HtmlNode
- selector string
Returns
IReadOnlyList<HtmlElement>public string Serialize(HtmlNode node, bool childrenOnly = false) #Serializes a node or its children as HTML without executing or loading content.
Parameters
- node OfficeIMO.Html.Dom.HtmlNode
- childrenOnly bool = false
Returns
stringInherited Methods
Properties
public static AngleSharpDomServices Instance { get; } #Shared stateless syntax services.