ColorInstruction.StringToColor Method

GeonBit.UI

ColorInstructionStringToColor Method
Converts a supported color string to its respective color. Supported colors are as follows: red, blue, green, yellow, brown, black, white, cyan, pink, gray, magenta, orange, purple, silver, gold, teal or default (White)

Namespace:  GeonBit.UI.Entities
Assembly:  GeonBit.UI (in GeonBit.UI.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public Color StringToColor(
	string sColor
)

Parameters

sColor
Type: SystemString
The color represented as a string value; any invalid value will default to White.

Return Value

Type: Color
The actual color object or White as the fallback default.
See Also