Aspose::Page::Drawing::Color::FromName method

Color::FromName method

Creates a T:Aspose::Page::Drawing::Color structure from the specified name of a predefined color.

static Aspose::Page::Drawing::Color Aspose::Page::Drawing::Color::FromName(System::String name)
ParameterTypeDescription
nameSystem::StringA string that is the name of a predefined color. Valid names are the same as the names of the elements of the T:System::Drawing::KnownColor enumeration.

ReturnValue

The T:Aspose::Page::Drawing::Color that this method creates.

See Also