Method ParseHex
ParseHex(string)
Parses a Color from a hexadecimal string.
public static Color ParseHex(string hex)
Parameters
hex
stringThe hexadecimal string to parse.
Returns
- Color
The color that the string represents.
Remarks
See TryParseHex(string, out Color) for details on what formats are supported.
Exceptions
- FormatException
the string is not in a valid format.