# HtmlCssColorFunctionValue

A provider-independent sRGB, HSL, or HWB functional color.

Class 

`OfficeIMO.Html.Css`

**Namespace**

`OfficeIMO.Html.Css`

**Assembly**

`OfficeIMO.Html.Core`

**Source revision**

`56dd0d38e0b5` with working tree changes

**Source**

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

**Modifiers**

sealed

A provider-independent sRGB, HSL, or HWB functional color.

## Inheritance

- object
- HtmlCssColorFunctionValue

## Usage

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

- Property [HtmlCssPropertyValue.ColorFunction](/api/html-core/officeimo-html-css-htmlcsspropertyvalue/#property-colorfunction)

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

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

Color function model.

`public IReadOnlyList<HtmlCssColorComponent> Components { get; }` [#](#property-components)

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

Three model-specific components in source order.

`public HtmlCssColorComponent Alpha { get; }` [#](#property-alpha)

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

Alpha component; an omitted alpha is represented as the number 1.

`public bool UsesLegacyCommaSyntax { get; }` [#](#property-useslegacycommasyntax)

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

Whether rgb()/rgba() or hsl()/hsla() used the legacy comma grammar.

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