ColorTranslator 类

定义

将颜色翻译成 GDI+ Color 结构并从该结构翻译颜色。Translates colors to and from GDI+ Color structures. 无法继承此类。This class cannot be inherited.

public ref class ColorTranslator sealed
public sealed class ColorTranslator
type ColorTranslator = class
Public NotInheritable Class ColorTranslator
继承
ColorTranslator

方法

Equals(Object)

确定指定的对象是否等于当前对象。Determines whether the specified object is equal to the current object.

(继承自 Object)
FromHtml(String)

将 HTML 颜色表示形式翻译成 GDI+ Color 结构。Translates an HTML color representation to a GDI+ Color structure.

FromOle(Int32)

将 OLE 颜色值翻译成 GDI+ Color 结构。Translates an OLE color value to a GDI+ Color structure.

FromWin32(Int32)

将 Windows 颜色值翻译成 GDI+ Color 结构。Translates a Windows color value to a GDI+ Color structure.

GetHashCode()

用作默认哈希函数。Serves as the default hash function.

(继承自 Object)
GetType()

获取当前实例的 TypeGets the Type of the current instance.

(继承自 Object)
MemberwiseClone()

创建当前 Object 的浅表副本。Creates a shallow copy of the current Object.

(继承自 Object)
ToHtml(Color)

将指定的 Color 结构翻译成 HTML 字符串颜色表示形式。Translates the specified Color structure to an HTML string color representation.

ToOle(Color)

将指定的 Color 结构翻译成 OLE 颜色。Translates the specified Color structure to an OLE color.

ToString()

返回一个表示当前对象的 string。Returns a string that represents the current object.

(继承自 Object)
ToWin32(Color)

将指定的 Color 结构翻译成 Windows 颜色。Translates the specified Color structure to a Windows color.

适用于