Color.IsKnownColor Property
.NET Framework (current version)
Gets a value indicating whether this Color structure is a predefined color. Predefined colors are represented by the elements of the KnownColor enumeration.
Assembly: System.Drawing (in System.Drawing.dll)
Property Value
Type: System.Booleantrue if this Color was created from a predefined color by using either the FromName method or the FromKnownColor method; otherwise, false.
.NET Framework
Available since 1.1
Available since 1.1
Show: