# HtmlCssSelectorOptions

Resource bounds for parsing a standalone selector.

Class 

`OfficeIMO.Html.Css`

**Namespace**

`OfficeIMO.Html.Css`

**Assembly**

`OfficeIMO.Html.Core`

**Source revision**

`56dd0d38e0b5` with working tree changes

**Source**

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

**Modifiers**

sealed

Resource bounds for parsing a standalone selector.

## Inheritance

- object
- HtmlCssSelectorOptions

## Usage

Explore 2 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.

### Accepted by parameters 2

- Method [HtmlCssSelectorParser.Parse](/api/html-core/officeimo-html-css-htmlcssselectorparser/#method-parse-string-officeimo-html-css-htmlcssselectoroptions-threading-cancellationtoken) parameter `options`
- Method [HtmlCssSelectorParser.ParseList](/api/html-core/officeimo-html-css-htmlcssselectorparser/#method-parselist-string-officeimo-html-css-htmlcssselectoroptions-threading-cancellationtoken) parameter `options`

Filter members 

Show inherited

## Constructors

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

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

## 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 int MaxInputCharacters { get; set; }` [#](#property-maxinputcharacters)

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

Maximum UTF-16 selector length.

`public int MaxTokens { get; set; }` [#](#property-maxtokens)

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

Maximum lexical tokens, including trivia.

`public int MaxCompounds { get; set; }` [#](#property-maxcompounds)

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

Maximum compound selectors in one complex selector.

`public int MaxSimpleSelectors { get; set; }` [#](#property-maxsimpleselectors)

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

Maximum simple selectors across all compounds.

`public int MaxSelectors { get; set; }` [#](#property-maxselectors)

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

Maximum selectors in one comma-separated selector list, including nested logical lists.

`public int MaxNestingDepth { get; set; }` [#](#property-maxnestingdepth)

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

Maximum nesting depth of selector-taking pseudo-classes.

`public HtmlCssNamespaceContext? Namespaces { get; set; }` [#](#property-namespaces)

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

Stylesheet-scoped namespace bindings used by qualified type and attribute selectors.

<!-- PowerForge markdown artifact sha256:15016D525A32248DFA885C37750FC5E9856BE2E110C98C146F6661CC1127FC13 -->
