Color.FromKnownColor

Color.FromKnownColor method

Creates a Color structure from the specified predefined color.

public static Color FromKnownColor(KnownColor color)
ParameterTypeDescription
colorKnownColorAn element of the KnownColor enumeration.

Return Value

The Color that this method creates.

See Also