FromName()

Color::FromName(const String&) method

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

static Color System::Drawing::Color::FromName(const String &name)

Arguments

ParameterTypeDescription
nameconst String&The name of the color

Return Value

An instance of Color class that represents a color named name

See Also