FromName
Leave feedback
On this page
Creates a color from the specified name of a known color. If name is not a known color name, an exception is thrown.
public static Color FromName(string name)
| Parameter | Type | Description |
|---|---|---|
| name | String | The name of a known color, such as Red or Black. |
The named color.
| exception | condition |
|---|---|
| ArgumentNullException | name is null. |
| ArgumentException | name is not a known color name. |
- struct Color
- namespace GroupDocs.Redaction.Options.Drawing
- assembly GroupDocs.Redaction
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.