Color Inequality Operator
Tests whether two specified Color structures are different.
[Visual Basic] returnValue = Color.op_Inequality(left, right) [C#] public static bool operator !=( Color left, Color right ); [C++] public: static bool op_Inequality( 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 inequality operator.
- right
- The Color structure that is to the right of the inequality operator.
Parameters [C#, C++]
- left
- The Color structure that is to the left of the inequality operator.
- right
- The Color structure that is to the right of the inequality operator.
Return Value
This operator returns true if the two Color structures are different; 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