Creates a 32-bit integer color value from a known color name. Check Microsoft's documentation of the KnownColor enumeration.
int ColorFromName(string name)
name |
Name of a predefined color. |
Example
ColorFromName("SandyBrown")
Returns the color argb(255, 244, 164, 96).