Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/

API Reference

Class

HtmlCssSelectorList

Namespace OfficeIMO.Html.Css
Assembly OfficeIMO.Html.Core
Modifiers sealed

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

Inheritance

  • Object
  • HtmlCssSelectorList

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

Methods

Matches 2 overloads
public Boolean Matches(HtmlElement element) #
Returns: Boolean

Matches when any selector in the list matches the element.

Parameters

element OfficeIMO.Html.Dom.HtmlElement requiredposition: 0
public Boolean Matches(HtmlElement element, CancellationToken cancellationToken) #
Returns: Boolean

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

Parameters

element OfficeIMO.Html.Dom.HtmlElement requiredposition: 0
cancellationToken System.Threading.CancellationToken requiredposition: 1

Properties

public String Source { get; } #

The trimmed selector-list source.

public IReadOnlyList<HtmlCssSelector> Selectors { get; } #

Selectors in authored order.