Table of Contents

Method Parse

Namespace
DocWright.Core.Primitives
Assembly
DocWright.Core.dll

Parse(string)

Parses an ST_HexColor value: the literal auto (any letter casing) or exactly six hex digits (upper or lower case) with no leading '#'.

public static ColorRgb Parse(string text)

Parameters

text string

The text to parse.

Returns

ColorRgb

The parsed color.

Exceptions

ArgumentNullException

text is null.

FormatException

The text is not a valid ST_HexColor value.