## ColorTranslator::ToHtml method


Converts the specified [Color](../../color/) object to the string representation of equivalent HTML color.

```cpp
static String System::Drawing::ColorTranslator::ToHtml(const Color &color)
```


| Parameter | Type | Description |
| --- | --- | --- |
| color | const Color\& | A [Color](../../color/) object to translate |

### ReturnValue

The name of HTML color equivalent to the color represented by **color**

## See Also

* Class [String](../../../system/string/)
* Class [Color](../../color/)
* Class [ColorTranslator](../)
* Namespace [System::Drawing](../../)
* Library [Aspose.PDF for C++](../../../)
