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