Color.IsKnownColor Property
Specifies whether this Color structure is a pre-defined color. Pre-defined colors are represented by the elements of the KnownColor enumeration.
[Visual Basic] Public ReadOnly Property IsKnownColor As Boolean [C#] public bool IsKnownColor {get;} [C++] public: __property bool get_IsKnownColor(); [JScript] public function get IsKnownColor() : Boolean;
Property Value
This property returns true if this Color structure was created from a pre-defined color by using either the FromName method or the FromKnownColor method; otherwise, false.
Remarks
This method does not do a comparison of the ARGB values. Therefore, when the IsKnownColor method is applied to a Color structure that is created by using the FromArgb method, the IsKnownColor method returns false, even if the ARGB value matches the ARGB value of a pre-defined color.
Requirements
Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family