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 String) method or the KnownColor) method; otherwise, false.

See Also