## ColorTranslator::ToHtml method


将指定的 [Color](../../color/) 对象转换为等效的 HTML 颜色的字符串表示形式。

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


| 参数 | 类型 | 描述 |
| --- | --- | --- |
| color | const Color\& | 要翻译的 [Color](../../color/) 对象 |

### ReturnValue

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

## 另见

* Class [String](../../../system/string/)
* Class [Color](../../color/)
* Class [ColorTranslator](../)
* Namespace [System::Drawing](../../)
* Library [Aspose.Font for C++](../../../)
