# HtmlCssMathParser

Parses the bounded OfficeIMO-owned CSS length, percentage, and arithmetic subset.

Class 

`OfficeIMO.Html.Css`

**Namespace**

`OfficeIMO.Html.Css`

**Assembly**

`OfficeIMO.Html.Core`

**Source revision**

`56dd0d38e0b5` with working tree changes

**Source**

[HtmlCssMathParser.cs:13](https://github.com/EvotecIT/OfficeIMO/blob/56dd0d38e0b526611c1af001c026f8c72600880f/OfficeIMO.Html.Core/Css/HtmlCssMathParser.cs#L13)

**Modifiers**

static

Parses the bounded OfficeIMO-owned CSS length, percentage, and arithmetic subset.

## Inheritance

- object
- HtmlCssMathParser

Filter members 

Show inherited

## Methods

`public static HtmlCssMathParseResult ParseLengthPercentage(string source, HtmlCssMathOptions? options = null, CancellationToken cancellationToken = default)` [#](#method-parselengthpercentage-string-officeimo-html-css-htmlcssmathoptions-threading-cancellationtoken)

[HtmlCssMathParser.cs:13](https://github.com/EvotecIT/OfficeIMO/blob/56dd0d38e0b526611c1af001c026f8c72600880f/OfficeIMO.Html.Core/Css/HtmlCssMathParser.cs#L13)

Parses a standalone value accepted by a <length-percentage> property position.

Parameters

**source string required**

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

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

Returns

`HtmlCssMathParseResult`

## 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:8251ED158280BCB3A52F6D38386E2477F289F66D792540EBA3F664CF68400268 -->
