## Color::FromName method


Constructs an instance of [Color](../) class that represents a color with the specified name.

```cpp
static Color System::Drawing::Color::FromName(const String &name)
```


| Parameter | Type | Description |
| --- | --- | --- |
| name | const String\& | The name of the color |

### ReturnValue

An instance of [Color](../) class that represents a color named **name**

## See Also

* Class [Color](../)
* Class [String](../../../system/string/)
* Class [Color](../)
* Namespace [System::Drawing](../../)
* Library [Aspose.PDF for C++](../../../)
