System::Drawing::Color::FromKnownColor method

Color::FromKnownColor method

Constructs an instance of Color class that represents the specified known color.

static Color System::Drawing::Color::FromKnownColor(KnownColor kc)
ParameterTypeDescription
kcKnownColorA known color to be represented by the object being created

ReturnValue

An instance of Color class that represents kc color

See Also