Color.IsKnownColor Property
.NET Framework 3.0
Gets a value indicating whether this Color structure is a predefined color. Predefined colors are represented by the elements of the KnownColor enumeration.
Namespace: System.Drawing
Assembly: System.Drawing (in system.drawing.dll)
Assembly: System.Drawing (in system.drawing.dll)
/** @property */ public boolean get_IsKnownColor ()
public function get IsKnownColor () : boolean
Not applicable.
Property Value
true if this Color was created from a predefined color by using either the FromName method or the FromKnownColor method; otherwise, false.This property does not do a comparison of the ARGB values. Therefore, when the IsKnownColor property is applied to a Color structure that is created by using the FromArgb method, IsKnownColor returns false, even if the ARGB value matches the ARGB value of a predefined color.
Windows 98, Windows Server 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.Community Additions
ADD
Show: