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; }

Return Value

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

See Also