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 FromName method or the FromKnownColor method; otherwise, false.

See Also