Table of Contents

Method ParseHex

Namespace
Gamelogic.Colors
Assembly
Gamelogic.Colors.dll

ParseHex(string)

Parses a Color from a hexadecimal string.

public static Color ParseHex(string hex)

Parameters

hex string

The 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.