# HtmlCssPropertyValueKind

Typed shape of a parsed value in the first owned property grammar slice.

Enum 

`OfficeIMO.Html.Css`

**Namespace**

`OfficeIMO.Html.Css`

**Assembly**

`OfficeIMO.Html.Core`

**Source revision**

`56dd0d38e0b5` with working tree changes

**Source**

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

**Base**

`Enum`

**Implements**

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

**Modifiers**

sealed

Typed shape of a parsed value in the first owned property grammar slice.

## Inheritance

- Enum
- HtmlCssPropertyValueKind

## Usage

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

- Property [HtmlCssPropertyValue.Kind](/api/html-core/officeimo-html-css-htmlcsspropertyvalue/#property-kind)
- Field [HtmlCssPropertyValueKind.Calculation](/api/html-core/officeimo-html-css-htmlcsspropertyvaluekind/#field-calculation)
- Field [HtmlCssPropertyValueKind.ColorFunction](/api/html-core/officeimo-html-css-htmlcsspropertyvaluekind/#field-colorfunction)
- Field [HtmlCssPropertyValueKind.CssWideKeyword](/api/html-core/officeimo-html-css-htmlcsspropertyvaluekind/#field-csswidekeyword)
- Field [HtmlCssPropertyValueKind.CurrentColor](/api/html-core/officeimo-html-css-htmlcsspropertyvaluekind/#field-currentcolor)
- Field [HtmlCssPropertyValueKind.DeferredFunction](/api/html-core/officeimo-html-css-htmlcsspropertyvaluekind/#field-deferredfunction)
- Field [HtmlCssPropertyValueKind.HexColor](/api/html-core/officeimo-html-css-htmlcsspropertyvaluekind/#field-hexcolor)
- Field [HtmlCssPropertyValueKind.Keyword](/api/html-core/officeimo-html-css-htmlcsspropertyvaluekind/#field-keyword)
- Field [HtmlCssPropertyValueKind.Length](/api/html-core/officeimo-html-css-htmlcsspropertyvaluekind/#field-length)
- Field [HtmlCssPropertyValueKind.NamedColor](/api/html-core/officeimo-html-css-htmlcsspropertyvaluekind/#field-namedcolor)
- Field [HtmlCssPropertyValueKind.Number](/api/html-core/officeimo-html-css-htmlcsspropertyvaluekind/#field-number)
- Field [HtmlCssPropertyValueKind.Percentage](/api/html-core/officeimo-html-css-htmlcsspropertyvaluekind/#field-percentage)
- Field [HtmlCssPropertyValueKind.SystemColor](/api/html-core/officeimo-html-css-htmlcsspropertyvaluekind/#field-systemcolor)

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 HtmlCssPropertyValueKind CssWideKeyword` [#](#field-csswidekeyword)

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

A keyword shared by every CSS property.

Value: `0`

`public const HtmlCssPropertyValueKind Keyword` [#](#field-keyword)

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

A property-specific keyword.

Value: `1`

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

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

A unitless number.

Value: `2`

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

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

A percentage.

Value: `3`

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

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

A CSS length.

Value: `4`

`public const HtmlCssPropertyValueKind Calculation` [#](#field-calculation)

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

A calculated numeric value, including a contextual length-percentage expression.

Value: `5`

`public const HtmlCssPropertyValueKind HexColor` [#](#field-hexcolor)

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

A hexadecimal color.

Value: `6`

`public const HtmlCssPropertyValueKind NamedColor` [#](#field-namedcolor)

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

A CSS named color.

Value: `7`

`public const HtmlCssPropertyValueKind SystemColor` [#](#field-systemcolor)

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

A system color whose used value comes from the user agent or host.

Value: `8`

`public const HtmlCssPropertyValueKind CurrentColor` [#](#field-currentcolor)

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

The currentColor keyword.

Value: `9`

`public const HtmlCssPropertyValueKind ColorFunction` [#](#field-colorfunction)

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

An sRGB, HSL, or HWB color function represented by typed components.

Value: `10`

`public const HtmlCssPropertyValueKind DeferredFunction` [#](#field-deferredfunction)

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

A function whose value is resolved later, such as var().

Value: `11`

<!-- PowerForge markdown artifact sha256:26273816FDA30132F6B6AD677476F010A13060DCE2CD5AD846693035C86B5BFD -->
