ToHtml()

ColorTranslator::ToHtml(const Color&) method

Converts the specified Color object to the string representation of equivalent HTML color.

static String System::Drawing::ColorTranslator::ToHtml(const Color &color)

Arguments

ParameterTypeDescription
colorconst Color&A Color object to translate

Return Value

The name of HTML color equivalent to the color represented by color

See Also