Color.ToName

Color.ToName method

Returns the name of the color if it matches a color in the list of CSS named colors, or an empty string.

public string ToName()

Return Value

A color name.

See Also