Class RGBColor

Class RGBColor

名称: Aspose.Html.Dom.Css 编辑: Aspose.HTML.dll (25.4.0)

RGBColor 接口用于代表任何 RGB 颜色值. 此接口反映了基本风格属性中的值. 因此,对 CSSPrimitiveValue 对象进行的修改改变了风格属性。

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

Inheritance

object DOMObject RGBColor

Implements

INotifyPropertyChanged

继承人

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

Properties

Alpha

此属性用于RGB颜色的阿尔法值。

public CSSPrimitiveValue Alpha { get; }

财产价值

CSSPrimitiveValue

Blue

此属性用于RGB颜色的蓝色值。

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

财产价值

CSSPrimitiveValue

Green

此属性用于RGB颜色的绿色值。

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

财产价值

CSSPrimitiveValue

Red

此属性用于RGB颜色的红色值。

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

财产价值

CSSPrimitiveValue

Methods

ToNative()

转换为原始颜色对象。

public Color ToNative()

Returns

Color

System.Drawing.Color 对象。

 中文