xtd 0.2.0
Loading...
Searching...
No Matches

◆ parse< drawing::color >()

template<>
drawing::color xtd::parse< drawing::color > ( const std::string &  str)
inline

Creates a xtd::drawing::color class from the specified name.

Parameters
nameA string that is the name of a predefined color. Valid names are the same as the names of the elements of the xtd::drawing::known_color enumeration or hexadecimal value that represents argb value, or four decimal values separated by a comma representing respectively a, r, g, b, values.
Returns
xtd::drawing::color The xtd::drawing::color structure that this method creates.