FromKnownColor()

Color::FromKnownColor(KnownColor) method

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

static Color System::Drawing::Color::FromKnownColor(KnownColor kc)

Arguments

ParameterTypeDescription
kcKnownColorA known color to be represented by the object being created

Return Value

An instance of Color class that represents kc color

See Also