CssLab Class

lab() (https://drafts.css-houdini.org/css-typed-om-1/#csslab).

public sealed class CssLab : CssColorValue
Inheritance
CssColorValue CssLab

Constructors

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

CssLab(CssColorChannel, CssColorChannel, CssColorChannel, CssColorChannel?)

CssColorValue.cs

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

public CssLab(CssColorChannel l, CssColorChannel a, CssColorChannel b, CssColorChannel? alpha = null)

Properties

NameDescription
AGets or sets the a axis channel of the lab() color.
AlphaGets or sets the alpha (opacity) channel of the lab() color.
BGets or sets the b axis channel of the lab() color.
LGets or sets the lightness channel of the lab() color.

Gets or sets the a axis channel of the lab() color.

public CssColorChannel A { get; set; }

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

public CssColorChannel Alpha { get; set; }

Gets or sets the b axis channel of the lab() color.

public CssColorChannel B { get; set; }

Gets or sets the lightness channel of the lab() 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