# HtmlCssMathExpression

An immutable, provider-independent CSS numeric expression.

Class 

`OfficeIMO.Html.Css`

**Namespace**

`OfficeIMO.Html.Css`

**Assembly**

`OfficeIMO.Html.Core`

**Source revision**

`56dd0d38e0b5` with working tree changes

**Source**

[HtmlCssMathContracts.cs:118](https://github.com/EvotecIT/OfficeIMO/blob/56dd0d38e0b526611c1af001c026f8c72600880f/OfficeIMO.Html.Core/Css/HtmlCssMathContracts.cs#L118)

**Modifiers**

sealed

An immutable, provider-independent CSS numeric expression.

## Inheritance

- object
- HtmlCssMathExpression

## Usage

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

- Property [HtmlCssMathExpression.Children](/api/html-core/officeimo-html-css-htmlcssmathexpression/#property-children)
- Property [HtmlCssMathParseResult.Expression](/api/html-core/officeimo-html-css-htmlcssmathparseresult/#property-expression)
- Property [HtmlCssPropertyValue.MathExpression](/api/html-core/officeimo-html-css-htmlcsspropertyvalue/#property-mathexpression)

### Accepted by parameters 1

- Method [HtmlCssMathResolver.ResolveLength](/api/html-core/officeimo-html-css-htmlcssmathresolver/#method-resolvelength-officeimo-html-css-htmlcssmathexpression-officeimo-html-css-htmlcsslengthresolutioncontext-threading-cancellationtoken) parameter `expression`

Filter members 

Show inherited

## 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 HtmlCssMathExpressionKind Kind { get; }` [#](#property-kind)

[HtmlCssMathContracts.cs:118](https://github.com/EvotecIT/OfficeIMO/blob/56dd0d38e0b526611c1af001c026f8c72600880f/OfficeIMO.Html.Core/Css/HtmlCssMathContracts.cs#L118)

The expression node kind.

`public HtmlCssNumericType Type { get; }` [#](#property-type)

[HtmlCssMathContracts.cs:120](https://github.com/EvotecIT/OfficeIMO/blob/56dd0d38e0b526611c1af001c026f8c72600880f/OfficeIMO.Html.Core/Css/HtmlCssMathContracts.cs#L120)

The numeric type established without resolving layout-dependent context.

`public string CanonicalText { get; }` [#](#property-canonicaltext)

[HtmlCssMathContracts.cs:122](https://github.com/EvotecIT/OfficeIMO/blob/56dd0d38e0b526611c1af001c026f8c72600880f/OfficeIMO.Html.Core/Css/HtmlCssMathContracts.cs#L122)

A stable invariant representation of this implemented expression subset.

`public double? Value { get; }` [#](#property-value)

[HtmlCssMathContracts.cs:124](https://github.com/EvotecIT/OfficeIMO/blob/56dd0d38e0b526611c1af001c026f8c72600880f/OfficeIMO.Html.Core/Css/HtmlCssMathContracts.cs#L124)

The finite literal value, or null for a compound expression.

`public HtmlCssLengthUnit? Unit { get; }` [#](#property-unit)

[HtmlCssMathContracts.cs:126](https://github.com/EvotecIT/OfficeIMO/blob/56dd0d38e0b526611c1af001c026f8c72600880f/OfficeIMO.Html.Core/Css/HtmlCssMathContracts.cs#L126)

The unit of a length literal, or null for numbers and percentages.

`public IReadOnlyList<HtmlCssMathExpression> Children { get; }` [#](#property-children)

[HtmlCssMathContracts.cs:128](https://github.com/EvotecIT/OfficeIMO/blob/56dd0d38e0b526611c1af001c026f8c72600880f/OfficeIMO.Html.Core/Css/HtmlCssMathContracts.cs#L128)

Child expressions in source order.

`public bool IsCalculated { get; }` [#](#property-iscalculated)

[HtmlCssMathContracts.cs:130](https://github.com/EvotecIT/OfficeIMO/blob/56dd0d38e0b526611c1af001c026f8c72600880f/OfficeIMO.Html.Core/Css/HtmlCssMathContracts.cs#L130)

Whether the expression contains a CSS math function or arithmetic operator.

<!-- PowerForge markdown artifact sha256:E64D5DFB65558E237F42BFD28321350EFEC3DB903E81993A0D55933F454F29B5 -->
