Color.IsKnownColor

Color.IsKnownColor property

Gets a value indicating whether this Color structure is a predefined color. Predefined colors are represented by the elements of the KnownColor enumeration.

public bool IsKnownColor { get; }

Property Value

true if this Color was created from a predefined color by using either the String) method or the KnownColor) method; otherwise, false.

See Also