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; }Gets the alpha component value of this Color class.
Blue { get; }Gets the blue component value of this Color class.
Green { get; }Gets the green component value of this Color class.
Red { get; }Gets the red component value of this Color class.

Methods

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

See Also