# AngleSharpDomServices

Selector and HTML serialization services over owned nodes. Performs no network access or script execution.

Class 

`OfficeIMO.Html.Providers`

**Namespace**

`OfficeIMO.Html.Providers`

**Assembly**

`OfficeIMO.Html.AngleSharp`

**Source revision**

`ba882f6b0d07` with working tree changes

**Source**

[AngleSharpDomServices.cs:14](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Html.AngleSharp/AngleSharpDomServices.cs#L14)

**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

- Property [AngleSharpDomServices.Instance](/api/html-angle-sharp/officeimo-html-providers-anglesharpdomservices/#property-instance)

Filter members 

Show inherited

## Constructors

`public AngleSharpDomServices()` [#](#constructor-ctor)

## Methods

`public bool Matches(HtmlElement element, string selector)` [#](#method-matches-officeimo-html-dom-htmlelement-string)

[AngleSharpDomServices.cs:44](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Html.AngleSharp/AngleSharpDomServices.cs#L44)

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)` [#](#method-queryselectorall-officeimo-html-dom-htmlnode-string)

[AngleSharpDomServices.cs:25](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Html.AngleSharp/AngleSharpDomServices.cs#L25)

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)` [#](#method-serialize-officeimo-html-dom-htmlnode-boolean)

[AngleSharpDomServices.cs:14](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Html.AngleSharp/AngleSharpDomServices.cs#L14)

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`

## Inherited Methods

`public virtual bool Equals(object? obj)` [#](#method-equals-object)

Inherited from object

Parameters

**obj object? required**

Returns

`bool`

`public virtual int GetHashCode()` [#](#method-gethashcode)

Inherited from object

Returns

`int`

`public Type GetType()` [#](#method-gettype)

Inherited from object

Returns

`Type`

`public virtual string? ToString()` [#](#method-tostring)

Inherited from object

Returns

`string?`

## Properties

`public static AngleSharpDomServices Instance { get; }` [#](#property-instance)

[AngleSharpDomServices.cs:11](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Html.AngleSharp/AngleSharpDomServices.cs#L11)

Shared stateless syntax services.

<!-- PowerForge markdown artifact sha256:E9B31350C3EB596AC141A5538D99ED568A517FC141CA457A1CA169E7F3397EB4 -->
