# HtmlCssTokenizationOptions

Source and token budgets for a standalone lexical operation.

Class 

`OfficeIMO.Html.Css`

**Namespace**

`OfficeIMO.Html.Css`

**Assembly**

`OfficeIMO.Html.Core`

**Source revision**

`56dd0d38e0b5` with working tree changes

**Source**

[HtmlCssTokenizer.cs:58](https://github.com/EvotecIT/OfficeIMO/blob/56dd0d38e0b526611c1af001c026f8c72600880f/OfficeIMO.Html.Core/Css/HtmlCssTokenizer.cs#L58)

**Modifiers**

sealed

Source and token budgets for a standalone lexical operation.

## Inheritance

- object
- HtmlCssTokenizationOptions

## 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 [HtmlCssTokenizationOptions.Clone](/api/html-core/officeimo-html-css-htmlcsstokenizationoptions/#method-clone)

### Accepted by parameters 2

- Method [HtmlCssPropertyParser.Parse](/api/html-core/officeimo-html-css-htmlcsspropertyparser/#method-parse-string-string-officeimo-html-css-htmlcsstokenizationoptions-threading-cancellationtoken) parameter `options`
- Method [HtmlCssTokenizer.Tokenize](/api/html-core/officeimo-html-css-htmlcsstokenizer/#method-tokenize-string-officeimo-html-css-htmlcsstokenizationoptions-threading-cancellationtoken) parameter `options`

Filter members 

Show inherited

## Constructors

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

[HtmlCssTokenizer.cs:58](https://github.com/EvotecIT/OfficeIMO/blob/56dd0d38e0b526611c1af001c026f8c72600880f/OfficeIMO.Html.Core/Css/HtmlCssTokenizer.cs#L58)

## Methods

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

[HtmlCssTokenizer.cs:62](https://github.com/EvotecIT/OfficeIMO/blob/56dd0d38e0b526611c1af001c026f8c72600880f/OfficeIMO.Html.Core/Css/HtmlCssTokenizer.cs#L62)

Copies the request settings.

Returns

`HtmlCssTokenizationOptions`

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

[HtmlCssTokenizer.cs:65](https://github.com/EvotecIT/OfficeIMO/blob/56dd0d38e0b526611c1af001c026f8c72600880f/OfficeIMO.Html.Core/Css/HtmlCssTokenizer.cs#L65)

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)

[HtmlCssTokenizer.cs:58](https://github.com/EvotecIT/OfficeIMO/blob/56dd0d38e0b526611c1af001c026f8c72600880f/OfficeIMO.Html.Core/Css/HtmlCssTokenizer.cs#L58)

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

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

[HtmlCssTokenizer.cs:60](https://github.com/EvotecIT/OfficeIMO/blob/56dd0d38e0b526611c1af001c026f8c72600880f/OfficeIMO.Html.Core/Css/HtmlCssTokenizer.cs#L60)

Maximum tokens including comments and whitespace, excluding end-of-input; null disables this limit.

<!-- PowerForge markdown artifact sha256:2C336505B06F1BBC7280ECC31C0FA8423325EBB43FEC03DB15F7754942B134CB -->
