System::Drawing::ColorTranslator::ToHtml method

ColorTranslator::ToHtml method

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

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

ReturnValue

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

另见