CssRgb Class
rgb() and rgba() (https://drafts.css-houdini.org/css-typed-om-1/#cssrgb).
public sealed class CssRgb : CssColorValue- Inheritance
CssColorValueCssRgb
Constructors
| Name | Description |
|---|---|
| CssRgb(CssColorChannel, CssColorChannel, CssColorChannel, CssColorChannel?) | https://drafts.css-houdini.org/css-typed-om-1/#dom-cssrgb-cssrgb |
CssRgb(CssColorChannel, CssColorChannel, CssColorChannel, CssColorChannel?)
CssColorValue.cshttps://drafts.css-houdini.org/css-typed-om-1/#dom-cssrgb-cssrgb
public CssRgb(CssColorChannel r, CssColorChannel g, CssColorChannel b, CssColorChannel? alpha = null)Properties
| Name | Description |
|---|---|
| Alpha | Gets or sets the alpha (opacity) channel of the rgb() color. |
| B | Gets or sets the blue channel of the rgb() color. |
| G | Gets or sets the green channel of the rgb() color. |
| R | Gets or sets the red channel of the rgb() color. |
Alpha
CssColorValue.csGets or sets the alpha (opacity) channel of the rgb() color.
public CssColorChannel Alpha { get; set; }Property value
See also
Gets or sets the blue channel of the rgb() color.
public CssColorChannel B { get; set; }Gets or sets the green channel of the rgb() color.
public CssColorChannel G { get; set; }Gets or sets the red channel of the rgb() color.
public CssColorChannel R { get; set; }Methods
| Name | Description |
|---|---|
| ToString() | The serialization of the value (https://drafts.css-houdini.org/css-typed-om-1/#stylevalue-serialization). |