RGBColor Class

RGBColor class

The RGBColor interface is used to represent any RGB color value. This interface reflects the values in the underlying style property. Hence, modifications made to the CSSPrimitiveValue objects modify the style property.

public class RGBColor : DOMObject

Properties

NameDescription
Alpha { get; }This attribute is used for the alpha value of the RGB color.
Blue { get; }This attribute is used for the blue value of the RGB color.
Green { get; }This attribute is used for the green value of the RGB color.
Red { get; }This attribute is used for the red value of the RGB color.

Methods

NameDescription
virtual GetPlatformType()This method is used to retrieve ECMAScript object Type.
ToNative()Converts to the native color object.

See Also