GeonBit.UI Documentation
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)

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: ColorThe actual color object or White as the fallback default.
