StylusPoint.Inequality(StylusPoint, StylusPoint) Operator
Definitie
Belangrijk
Bepaalde informatie heeft betrekking op een voorlopige productversie die aanzienlijk kan worden gewijzigd voordat deze wordt uitgebracht. Microsoft biedt geen enkele expliciete of impliciete garanties met betrekking tot de informatie die hier wordt verstrekt.
Retourneert een Booleaanse waarde die aangeeft of de opgegeven StylusPoint objecten ongelijk zijn.
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
Parameters
- stylusPoint1
- StylusPoint
De eerste StylusPoint die moet worden vergeleken.
- stylusPoint2
- StylusPoint
De tweede StylusPoint die moet worden vergeleken.
Retouren
true als de opgegeven StylusPoint objecten ongelijk zijn; anders false.
Voorbeelden
In het volgende voorbeeld ziet u hoe u twee StylusPoint objecten controleert op ongelijkheid. Omdat de X, Yen eigenschappen zijn PressureFactor ingeschakeld en point1point2 zijn ingesteld op dezelfde waarde, zijn de twee StylusPoint-objecten gelijk. Het bericht wordt weergegeven.
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
Opmerkingen
De equivalente methode voor deze operator is de negatie van Equals