Color.IsNamedColor

Color.IsNamedColor property

Gets a value indicating whether this Color structure is a named color or a member of the KnownColor enumeration.

public bool IsNamedColor { get; }

Property Value

True if this Color was created by using either the FromName method or the FromKnownColor method; otherwise, false.

See Also