# HtmlCssSyntaxOptions

Resource bounds for an owned CSS syntax parse.

Class 

`OfficeIMO.Html.Css`

**Namespace**

`OfficeIMO.Html.Css`

**Assembly**

`OfficeIMO.Html.Core`

**Source revision**

`56dd0d38e0b5` with working tree changes

**Source**

[HtmlCssStyleSheet.cs:80](https://github.com/EvotecIT/OfficeIMO/blob/56dd0d38e0b526611c1af001c026f8c72600880f/OfficeIMO.Html.Core/Css/HtmlCssStyleSheet.cs#L80)

**Modifiers**

sealed

Resource bounds for an owned CSS syntax parse.

## Inheritance

- object
- HtmlCssSyntaxOptions

## Usage

Explore 3 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

- Method [HtmlCssSyntaxOptions.Clone](/api/html-core/officeimo-html-css-htmlcsssyntaxoptions/#method-clone)

### Accepted by parameters 2

- Method [HtmlCssSyntaxParser.ParseStyleBlock](/api/html-core/officeimo-html-css-htmlcsssyntaxparser/#method-parsestyleblock-string-officeimo-html-css-htmlcsssyntaxoptions-threading-cancellationtoken) parameter `options`
- Method [HtmlCssSyntaxParser.ParseStyleSheet](/api/html-core/officeimo-html-css-htmlcsssyntaxparser/#method-parsestylesheet-string-officeimo-html-css-htmlcsssyntaxoptions-threading-cancellationtoken) parameter `options`

Filter members 

Show inherited

## Constructors

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

[HtmlCssStyleSheet.cs:80](https://github.com/EvotecIT/OfficeIMO/blob/56dd0d38e0b526611c1af001c026f8c72600880f/OfficeIMO.Html.Core/Css/HtmlCssStyleSheet.cs#L80)

## Methods

`public HtmlCssSyntaxOptions Clone()` [#](#method-clone)

[HtmlCssStyleSheet.cs:88](https://github.com/EvotecIT/OfficeIMO/blob/56dd0d38e0b526611c1af001c026f8c72600880f/OfficeIMO.Html.Core/Css/HtmlCssStyleSheet.cs#L88)

Copies these settings.

Returns

`HtmlCssSyntaxOptions`

`public void Validate()` [#](#method-validate)

[HtmlCssStyleSheet.cs:96](https://github.com/EvotecIT/OfficeIMO/blob/56dd0d38e0b526611c1af001c026f8c72600880f/OfficeIMO.Html.Core/Css/HtmlCssStyleSheet.cs#L96)

Rejects nonpositive limits.

## 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)

[HtmlCssStyleSheet.cs:80](https://github.com/EvotecIT/OfficeIMO/blob/56dd0d38e0b526611c1af001c026f8c72600880f/OfficeIMO.Html.Core/Css/HtmlCssStyleSheet.cs#L80)

Maximum UTF-16 input length, or null for caller-bounded input.

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

[HtmlCssStyleSheet.cs:82](https://github.com/EvotecIT/OfficeIMO/blob/56dd0d38e0b526611c1af001c026f8c72600880f/OfficeIMO.Html.Core/Css/HtmlCssStyleSheet.cs#L82)

Maximum lexical tokens excluding end-of-input, or null to disable the token limit.

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

[HtmlCssStyleSheet.cs:84](https://github.com/EvotecIT/OfficeIMO/blob/56dd0d38e0b526611c1af001c026f8c72600880f/OfficeIMO.Html.Core/Css/HtmlCssStyleSheet.cs#L84)

Maximum nested function/block depth, or null to disable the nesting limit.

`public int? MaxSyntaxNodes { get; set; }` [#](#property-maxsyntaxnodes)

[HtmlCssStyleSheet.cs:86](https://github.com/EvotecIT/OfficeIMO/blob/56dd0d38e0b526611c1af001c026f8c72600880f/OfficeIMO.Html.Core/Css/HtmlCssStyleSheet.cs#L86)

Maximum materialized syntax nodes, or null to disable the syntax-node limit.

<!-- PowerForge markdown artifact sha256:866B59051D049C8021A3BD021541D4C3FC468E0246E870D2179DB71B99814762 -->
