Color.FromString

Color.FromString method

Parses string containing the CSS color and returns a new Color.

public static Color FromString(string color)
ParameterTypeDescription
colorStringA string containing the color in the format RGB, HEX, HSL, HSV, HWB, CMYK, NCOL, LCH, OKLCH, LAB or OKLAB

Return Value

A new instance of the Color class

See Also