Method FromKnownColor
FromKnownColor(KnownColor)
Creates a Color structure from the specified predefined color.
public static Color FromKnownColor(KnownColor color)
Parameters
color
KnownColorAn element of the KnownColor enumeration.
Returns
Remarks
A predefined color is also called a known color and is represented by an element of the KnownColor enumeration.