Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

AngleSharpDomServices

OfficeIMO.Html.Providers

Namespace
OfficeIMO.Html.Providers
Assembly
OfficeIMO.Html.AngleSharp
Source revision
ba882f6b0d07 with working tree changes
Implements
IHtmlDomServices
Modifiers
sealed

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

Constructors

public AngleSharpDomServices() #

Methods

public bool Matches(HtmlElement element, string selector) #

Tests one element against a selector.

Parameters

element OfficeIMO.Html.Dom.HtmlElement required
selector string required

Returns

bool
public IReadOnlyList<HtmlElement> QuerySelectorAll(HtmlNode scope, string selector) #

Returns matching descendant elements in document order, using the supplied scope.

Parameters

scope OfficeIMO.Html.Dom.HtmlNode required
selector string required

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 required
childrenOnly bool = false optional

Returns

string

Properties

public static AngleSharpDomServices Instance { get; } #

Shared stateless syntax services.