Click or drag to resize
DigitalRuneThemeHelperParseColor Method
Converts the specified string representation of a color to its Color equivalent, or throws an exception if the string cannot be converted to a Color.

Namespace: DigitalRune.Game.UI.Rendering
Assembly: DigitalRune.Game.UI (in DigitalRune.Game.UI.dll) Version: 1.8.0.0 (1.8.0.14553)
Syntax
public static Color ParseColor(
	string value,
	Color defaultColor
)

Parameters

value
Type: SystemString
The value. If this value is or an empty string, the defaultColor is returned.
defaultColor
Type: Color
The default color that is used for empty strings.

Return Value

Type: Color
The Color.
Exceptions
ExceptionCondition
FormatException Cannot convert value to Color.
See Also