# HtmlCssNumericType

Numeric types supported by the owned CSS math slice.

Enum 

`OfficeIMO.Html.Css`

**Namespace**

`OfficeIMO.Html.Css`

**Assembly**

`OfficeIMO.Html.Core`

**Source revision**

`56dd0d38e0b5` with working tree changes

**Source**

[HtmlCssPropertyContracts.cs:48](https://github.com/EvotecIT/OfficeIMO/blob/56dd0d38e0b526611c1af001c026f8c72600880f/OfficeIMO.Html.Core/Css/HtmlCssPropertyContracts.cs#L48)

**Base**

`Enum`

**Implements**

`IComparable` `ISpanFormattable` `IFormattable` `IConvertible`

**Modifiers**

sealed

Numeric types supported by the owned CSS math slice.

## Inheritance

- Enum
- HtmlCssNumericType

## Usage

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

- Property [HtmlCssMathExpression.Type](/api/html-core/officeimo-html-css-htmlcssmathexpression/#property-type)
- Field [HtmlCssNumericType.Length](/api/html-core/officeimo-html-css-htmlcssnumerictype/#field-length)
- Field [HtmlCssNumericType.LengthPercentage](/api/html-core/officeimo-html-css-htmlcssnumerictype/#field-lengthpercentage)
- Field [HtmlCssNumericType.Number](/api/html-core/officeimo-html-css-htmlcssnumerictype/#field-number)
- Field [HtmlCssNumericType.Percentage](/api/html-core/officeimo-html-css-htmlcssnumerictype/#field-percentage)
- Property [HtmlCssNumericValue.Type](/api/html-core/officeimo-html-css-htmlcssnumericvalue/#property-type)

Filter members 

Show inherited

## Inherited Methods

`public int CompareTo(object? target)` [#](#method-compareto-object)

Inherited from Enum

Parameters

**target object? required**

Returns

`int`

`public override bool Equals(object? obj)` [#](#method-equals-object)

Inherited from Enum

Parameters

**obj object? required**

Returns

`bool`

`public override int GetHashCode()` [#](#method-gethashcode)

Inherited from Enum

Returns

`int`

`public Type GetType()` [#](#method-gettype)

Inherited from object

Returns

`Type`

`public TypeCode GetTypeCode()` [#](#method-gettypecode)

Inherited from Enum

Returns

`TypeCode`

`public bool HasFlag(Enum flag)` [#](#method-hasflag-enum)

Inherited from Enum

Parameters

**flag Enum required**

Returns

`bool`

ToString 4 overloads

`public override string ToString()` [#](#method-tostring)

Inherited from Enum

Returns

`string`

`public string ToString(string? format)` [#](#method-tostring-string)

Inherited from Enum

Parameters

**format string? required**

Returns

`string`

`public string ToString(IFormatProvider? provider)` [#](#method-tostring-iformatprovider)

Inherited from Enum

`Obsolete("The provider argument is not used. Use ToString() instead.")`

Parameters

**provider IFormatProvider? required**

Returns

`string`

`public string ToString(string? format, IFormatProvider? provider)` [#](#method-tostring-string-iformatprovider)

Inherited from Enum

`Obsolete("The provider argument is not used. Use ToString(String) instead.")`

Parameters

**format string? required**

**provider IFormatProvider? required**

Returns

`string`

## Values

`public const HtmlCssNumericType Number` [#](#field-number)

[HtmlCssPropertyContracts.cs:50](https://github.com/EvotecIT/OfficeIMO/blob/56dd0d38e0b526611c1af001c026f8c72600880f/OfficeIMO.Html.Core/Css/HtmlCssPropertyContracts.cs#L50)

A unitless number.

Value: `0`

`public const HtmlCssNumericType Percentage` [#](#field-percentage)

[HtmlCssPropertyContracts.cs:52](https://github.com/EvotecIT/OfficeIMO/blob/56dd0d38e0b526611c1af001c026f8c72600880f/OfficeIMO.Html.Core/Css/HtmlCssPropertyContracts.cs#L52)

A percentage retaining its percentage scale.

Value: `1`

`public const HtmlCssNumericType Length` [#](#field-length)

[HtmlCssPropertyContracts.cs:54](https://github.com/EvotecIT/OfficeIMO/blob/56dd0d38e0b526611c1af001c026f8c72600880f/OfficeIMO.Html.Core/Css/HtmlCssPropertyContracts.cs#L54)

A CSS length.

Value: `2`

`public const HtmlCssNumericType LengthPercentage` [#](#field-lengthpercentage)

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

A calculation containing both length and percentage components.

Value: `3`

<!-- PowerForge markdown artifact sha256:6E76A7F828F44B50398052D861AC44842E5CE862113BCFC68D1EF22D6CFF2DF6 -->
