System::Drawing::ColorTranslator::ToHtml method

ColorTranslator::ToHtml method

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

static String System::Drawing::ColorTranslator::ToHtml(const Color &color)
ParameterTypeDescription
colorconst Color&A Color object to translate

ReturnValue

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

See Also