Color Equality Operator
Tests whether two specified Color structures are equivalent.
[Visual Basic] returnValue = Color.op_Equality(left, right) [C#] public static bool operator ==( Color left, Color right ); [C++] public: static bool op_Equality( Color left, Color right ); [JScript] returnValue = left == right;
[Visual Basic] In Visual Basic, you can use the operators defined by a type, but you cannot define your own.
[JScript] In JScript, you can use the operators defined by a type, but you cannot define your own.
Arguments [Visual Basic, JScript]
- left
- The Color structure that is to the left of the equality operator.
- right
- The Color structure that is to the right of the equality operator.
Parameters [C#, C++]
- left
- The Color structure that is to the left of the equality operator.
- right
- The Color structure that is to the right of the equality operator.
Return Value
This operator returns true if the two Color structures are equal; otherwise, false.
Remarks
This method compares more than the ARGB values of the Color structures. It also does a comparison of some state flags. If you want to compare just the ARGB values of two Color structures, use Color1.ToArgb() == Color2.ToArgb().
Requirements
Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, .NET Compact Framework