点击或拖拽改变大小

RColor 结构

Represents an ARGB (alpha, red, green, blue) color.

命名空间:  DSkin.Html.Adapters.Entities
程序集:  DSkin (在 DSkin.dll 中) 版本:16.6.3.22
语法
C#
public struct RColor

RColor 类型公开以下成员。

属性
  名称说明
公共属性A
Gets the alpha component value of this RColor structure.
公共属性B
Gets the blue component value of this RColor structure.
公共属性静态成员Black
Gets a system-defined color that has an ARGB value of #FF000000.
公共属性G
Gets the green component value of this RColor structure.
公共属性IsEmpty
Specifies whether this RColor structure is uninitialized.
公共属性静态成员LightGray
Gets a system-defined color that has an ARGB value of #FFD3D3D3.
公共属性R
Gets the red component value of this RColor structure.
公共属性静态成员Transparent
Gets a system-defined color.
公共属性静态成员White
Gets a system-defined color that has an ARGB value of #FFFFFFFF.
公共属性静态成员WhiteSmoke
Gets a system-defined color that has an ARGB value of #FFF5F5F5.
Top
方法
  名称说明
公共方法Equals
Tests whether the specified object is a RColor structure and is equivalent to this RColor structure.
(重写 ValueTypeEquals(Object).)
公共方法静态成员FromArgb(Int32, Int32, Int32)
Creates a RColor structure from the specified 8-bit color values (red, green, and blue). The alpha value is implicitly 255 (fully opaque). Although this method allows a 32-bit value to be passed for each color component, the value of each component is limited to 8 bits.
公共方法静态成员FromArgb(Int32, Int32, Int32, Int32)
Creates a RColor structure from the four ARGB component (alpha, red, green, and blue) values. Although this method allows a 32-bit value to be passed for each component, the value of each component is limited to 8 bits.
公共方法GetHashCode
Returns a hash code for this RColor structure.
(重写 ValueTypeGetHashCode.)
公共方法ToString
Converts this RColor structure to a human-readable string.
(重写 ValueTypeToString.)
Top
运算符
  名称说明
公共运算符静态成员Equality
Tests whether two specified RColor structures are equivalent.
公共运算符静态成员Inequality
Tests whether two specified RColor structures are different.
Top
字段
  名称说明
公共字段静态成员Empty
Represents a color that is null.
Top
扩展方法
  名称说明
公共扩展器方法FormatDateTime
将数据以时间格式并对其格式化
(由 ObjectExtenstions 定义。)
公共扩展器方法FormatNumber
将数据以数值方式对数据格式化
(由 ObjectExtenstions 定义。)
公共扩展器方法FormatString
将数据以字符串格式对数据格式化
(由 ObjectExtenstions 定义。)
公共扩展器方法Sleep
异步延迟执行代码,只能在主线程中调用
(由 DuiControlExtensions 定义。)
公共扩展器方法ToBool
将数据转换成Bool,如果转换失败返回False
(由 ObjectExtenstions 定义。)
公共扩展器方法ToDateTime
将数据转换成DateTime,如果转换失败返回空的时间
(由 ObjectExtenstions 定义。)
公共扩展器方法ToDouble
将数据转换成Double,如果转换失败返回0
(由 ObjectExtenstions 定义。)
公共扩展器方法ToEnumT
将数据转换成枚举,如果转换失败则返回默认值
(由 ObjectExtenstions 定义。)
公共扩展器方法ToFloat
将数据转换成Float,如果转换失败返回0
(由 ObjectExtenstions 定义。)
公共扩展器方法ToInt已重载。
将数据转换成int,如果转换失败返回0
(由 ObjectExtenstions 定义。)
公共扩展器方法ToInt(Int32)已重载。
数据转换成int,如果转换失败,返回errorResult
(由 ObjectExtenstions 定义。)
公共扩展器方法ToJson
将对象序列化成Json字符串
(由 JsonHelper 定义。)
公共扩展器方法ToLong
将数据转换成Long,如果转换失败返回0
(由 ObjectExtenstions 定义。)
Top
参见