This documentation is archived and is not being maintained.
Color::Equals Method
Visual Studio 2010
Namespace: System.Drawing
Assembly: System.Drawing (in System.Drawing.dll)
Parameters
- obj
- Type: System::Object
The object to test.
Return Value
Type: System::Booleantrue if obj is a Color structure equivalent to this Color structure; otherwise, false.
This structure only does comparisons with other Color structures. To compare colors based solely on their ARGB values, you should use the ToArgb method. This is because the Equals and Equality members determine equivalency using more than just the ARGB value of the colors. For example, Black and FromArgb(0,0,0) are not considered equal, since Black is a named color and FromArgb(0,0,0) is not.
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Show: