Color.ToKnownColor

Color.ToKnownColor method

Gets the KnownColor value of this Color structure.

public KnownColor ToKnownColor()

Return Value

An element of the KnownColor enumeration, if the Color is created from a predefined color by using either the String) method or the FromKnownColor method; otherwise, 0.

See Also