Class RGBColor

Class RGBColor

Namespace: Aspose.Html.Dom.Css
Assembly: Aspose.HTML.dll (25.2.0)

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.

[DOMName("RGBColor")]
[ComVisible(true)]
[DOMObject]
public class RGBColor : DOMObject, INotifyPropertyChanged

Inheritance

objectDOMObjectRGBColor

Implements

INotifyPropertyChanged

Inherited Members

DOMObject.GetPlatformType(), object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

Properties

Alpha

This attribute is used for the alpha value of the RGB color.

public CSSPrimitiveValue Alpha { get; }

Property Value

CSSPrimitiveValue

Blue

This attribute is used for the blue value of the RGB color.

[DOMName("blue")]
public CSSPrimitiveValue Blue { get; }

Property Value

CSSPrimitiveValue

Green

This attribute is used for the green value of the RGB color.

[DOMName("green")]
public CSSPrimitiveValue Green { get; }

Property Value

CSSPrimitiveValue

Red

This attribute is used for the red value of the RGB color.

[DOMName("red")]
public CSSPrimitiveValue Red { get; }

Property Value

CSSPrimitiveValue

Methods

ToNative()

Converts to the native color object.

public Color ToNative()

Returns

Color

The System.Drawing.Color object.