StylusPoint.Inequality(StylusPoint, StylusPoint) Operator
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns a Boolean value which indicates whether the specified StylusPoint objects are unequal.
public:
static bool operator !=(System::Windows::Input::StylusPoint stylusPoint1, System::Windows::Input::StylusPoint stylusPoint2);
public static bool operator !=(System.Windows.Input.StylusPoint stylusPoint1, System.Windows.Input.StylusPoint stylusPoint2);
static member op_Inequality : System.Windows.Input.StylusPoint * System.Windows.Input.StylusPoint -> bool
Public Shared Operator != (stylusPoint1 As StylusPoint, stylusPoint2 As StylusPoint) As Boolean
- stylusPoint1
- StylusPoint
The first StylusPoint to compare.
- stylusPoint2
- StylusPoint
The second StylusPoint to compare.
true
if the specified StylusPoint objects are unequal; otherwise, false
.
The following example demonstrates how to check two StylusPoint objects for inequality. Because the X, Y, and PressureFactor properties on point1
and point2
are set to the same value, the "The two StylusPoint objects are equal." Message appears.
StylusPoint point1 = new StylusPoint();
StylusPoint point2 = new StylusPoint();
point1.X = 150;
point1.Y = 400;
point1.PressureFactor = 0.45f;
point2.X = 150;
point2.Y = 400;
point2.PressureFactor = 0.45f;
Dim point1 As New StylusPoint()
Dim point2 As New StylusPoint()
point1.X = 150
point1.Y = 400
point1.PressureFactor = 0.45F
point2.X = 150
point2.Y = 400
point2.PressureFactor = 0.45F
if (point1 != point2)
{
MessageBox.Show("The two StylusPoint objects are not equal.");
}
else
{
MessageBox.Show("The two StylusPoint objects are equal.");
}
If point1 <> point2 Then
MessageBox.Show("The two StylusPoint objects are not equal.")
Else
MessageBox.Show("The two StylusPoint objects are equal.")
End If
The equivalent method for this operator is the negation of Equals
Product | Versions |
---|---|
.NET Framework | 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
Windows Desktop | 3.0, 3.1, 5, 6, 7, 8, 9, 10 |
.NET feedback
.NET is an open source project. Select a link to provide feedback: