# HtmlCssTokenizer

Tokenizes CSS without a parser provider, resource loading or property validation.

Class 

`OfficeIMO.Html.Css`

**Namespace**

`OfficeIMO.Html.Css`

**Assembly**

`OfficeIMO.Html.Core`

**Source revision**

`56dd0d38e0b5` with working tree changes

**Source**

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

**Modifiers**

static

Tokenizes CSS without a parser provider, resource loading or property validation.

## Inheritance

- object
- HtmlCssTokenizer

Filter members 

Show inherited

## Methods

`public static IReadOnlyList<HtmlCssToken> Tokenize(string source, HtmlCssTokenizationOptions? options = null, CancellationToken cancellationToken = default)` [#](#method-tokenize-string-officeimo-html-css-htmlcsstokenizationoptions-threading-cancellationtoken)

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

Returns immutable tokens, preserving comments, declaration order and original source spans. Escapes, nulls, unpaired surrogates and newlines are normalized in decoded values only. A canceled or budget-exhausted operation publishes no partial token list.

Parameters

**source string required**

**options OfficeIMO.Html.Css.HtmlCssTokenizationOptions? = null optional**

**cancellationToken System.Threading.CancellationToken = default optional**

Returns

`IReadOnlyList<HtmlCssToken>`

## 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?`

<!-- PowerForge markdown artifact sha256:2788B0A133723987960A237187AF89783E7782C13EE20D140B1C65BFDB371558 -->
