CssLch Class

lch() (https://drafts.css-houdini.org/css-typed-om-1/#csslch).

public sealed class CssLch : CssColorValue
Inheritance
CssColorValue CssLch

Constructors

NameDescription
CssLch(CssColorChannel, CssColorChannel, CssColorChannel, CssColorChannel?)https://drafts.css-houdini.org/css-typed-om-1/#dom-csslch-csslch

CssLch(CssColorChannel, CssColorChannel, CssColorChannel, CssColorChannel?)

CssColorValue.cs

https://drafts.css-houdini.org/css-typed-om-1/#dom-csslch-csslch

public CssLch(CssColorChannel l, CssColorChannel c, CssColorChannel h, CssColorChannel? alpha = null)

Properties

NameDescription
AlphaGets or sets the alpha (opacity) channel of the lch() color.
CGets or sets the chroma channel of the lch() color.
HGets or sets the hue channel of the lch() color.
LGets or sets the lightness channel of the lch() color.

Gets or sets the alpha (opacity) channel of the lch() color.

public CssColorChannel Alpha { get; set; }

Gets or sets the chroma channel of the lch() color.

public CssColorChannel C { get; set; }

Gets or sets the hue channel of the lch() color.

public CssColorChannel H { get; set; }

Gets or sets the lightness channel of the lch() color.

public CssColorChannel L { get; set; }

Methods

NameDescription
ToString()The serialization of the value (https://drafts.css-houdini.org/css-typed-om-1/#stylevalue-serialization).

The serialization of the value (https://drafts.css-houdini.org/css-typed-om-1/#stylevalue-serialization).

public override string ToString()

Returns

string