API Reference
Interface
IHtmlDomServices
Replaceable syntax services used by an owned document without exposing provider nodes.
Usage
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Returned or exposed by
- Property HtmlDocument.Services
Accepted by parameters
- Constructor HtmlDocument.HtmlDocument
Methods
public abstract Boolean Matches(HtmlElement element, String selector) #Returns:
BooleanTests one element against a selector.
Parameters
- element OfficeIMO.Html.Dom.HtmlElement
- selector System.String
public abstract IReadOnlyList<HtmlElement> QuerySelectorAll(HtmlNode scope, String selector) #Returns:
IReadOnlyList<HtmlElement>Returns matching descendant elements in document order, using the supplied scope.
Parameters
- scope OfficeIMO.Html.Dom.HtmlNode
- selector System.String
public abstract String Serialize(HtmlNode node, Boolean childrenOnly = false) #Returns:
StringSerializes a node or its children as HTML without executing or loading content.
Parameters
- node OfficeIMO.Html.Dom.HtmlNode
- childrenOnly System.Boolean = false