System::Drawing::ColorTranslator::ToHtml 方法

ColorTranslator::ToHtml method

将指定的 Color 对象转换为等效 HTML 颜色的字符串表示。

static String System::Drawing::ColorTranslator::ToHtml(const Color &color)
ParameterType描述
colorconst Color&要翻译的 Color 对象

ReturnValue

color 表示的颜色等价的 HTML 颜色名称

另见