System::Drawing::Color::FromName method

Color::FromName method

Constructs an instance of Color class that represents a color with the specified name.

static Color System::Drawing::Color::FromName(const String &name)
ParameterTypeDescription
nameconst String&The name of the color

ReturnValue

An instance of Color class that represents a color named name

See Also