# HtmlCssSelectorList

A parsed comma-separated selector list whose members can match the owned DOM.

Class 

`OfficeIMO.Html.Css`

**Namespace**

`OfficeIMO.Html.Css`

**Assembly**

`OfficeIMO.Html.Core`

**Source revision**

`56dd0d38e0b5` with working tree changes

**Source**

[HtmlCssSelectorContracts.cs:187](https://github.com/EvotecIT/OfficeIMO/blob/56dd0d38e0b526611c1af001c026f8c72600880f/OfficeIMO.Html.Core/Css/HtmlCssSelectorContracts.cs#L187)

**Modifiers**

sealed

A parsed comma-separated selector list whose members can match the owned DOM.

## Inheritance

- object
- HtmlCssSelectorList

## 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 [HtmlCssSelectorListParseResult.SelectorList](/api/html-core/officeimo-html-css-htmlcssselectorlistparseresult/#property-selectorlist)

Filter members 

Show inherited

## Methods

Matches 2 overloads

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

[HtmlCssSelectorContracts.cs:187](https://github.com/EvotecIT/OfficeIMO/blob/56dd0d38e0b526611c1af001c026f8c72600880f/OfficeIMO.Html.Core/Css/HtmlCssSelectorContracts.cs#L187)

Matches when any selector in the list matches the element.

Parameters

**element OfficeIMO.Html.Dom.HtmlElement required**

Returns

`bool`

`public bool Matches(HtmlElement element, CancellationToken cancellationToken)` [#](#method-matches-officeimo-html-dom-htmlelement-threading-cancellationtoken)

[HtmlCssSelectorContracts.cs:190](https://github.com/EvotecIT/OfficeIMO/blob/56dd0d38e0b526611c1af001c026f8c72600880f/OfficeIMO.Html.Core/Css/HtmlCssSelectorContracts.cs#L190)

Matches when any selector in the list matches, observing cancellation while traversing the tree.

Parameters

**element OfficeIMO.Html.Dom.HtmlElement required**

**cancellationToken System.Threading.CancellationToken required**

Returns

`bool`

## 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 string Source { get; }` [#](#property-source)

[HtmlCssSelectorContracts.cs:183](https://github.com/EvotecIT/OfficeIMO/blob/56dd0d38e0b526611c1af001c026f8c72600880f/OfficeIMO.Html.Core/Css/HtmlCssSelectorContracts.cs#L183)

The trimmed selector-list source.

`public IReadOnlyList<HtmlCssSelector> Selectors { get; }` [#](#property-selectors)

[HtmlCssSelectorContracts.cs:185](https://github.com/EvotecIT/OfficeIMO/blob/56dd0d38e0b526611c1af001c026f8c72600880f/OfficeIMO.Html.Core/Css/HtmlCssSelectorContracts.cs#L185)

Selectors in authored order.

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