Method HexToColor
HexToColor(string)
Converts an RGB or RGBA formatted hex string to a Color object.
Declaration
public static Color HexToColor(string hex)
Parameters
| Type | Name | Description |
|---|---|---|
| string | hex | The formatted string, with an optional "0x" or "#" prefix. |
Returns
| Type | Description |
|---|---|
| Color | The color value represented by the formatted string. |