StylusPoint.Equality(StylusPoint, StylusPoint) Operator
Definition
Wichtig
Einige Informationen beziehen sich auf Vorabversionen, die vor dem Release ggf. grundlegend überarbeitet werden. Microsoft übernimmt hinsichtlich der hier bereitgestellten Informationen keine Gewährleistungen, seien sie ausdrücklich oder konkludent.
Vergleicht zwei angegebene StylusPoint Objekte und bestimmt, ob sie gleich sind.
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 ( = ) : System.Windows.Input.StylusPoint * System.Windows.Input.StylusPoint -> bool
Public Shared Operator == (stylusPoint1 As StylusPoint, stylusPoint2 As StylusPoint) As Boolean
Parameter
- stylusPoint1
- StylusPoint
Der erste StylusPoint , der verglichen werden soll.
- stylusPoint2
- StylusPoint
Die zweite StylusPoint zu vergleichende.
Gibt zurück
true wenn die StylusPoint Objekte gleich sind; andernfalls false.
Beispiele
Im folgenden Beispiel werden zwei StylusPoint Objekte auf Gleichheit überprüft. Da die XUnd Y- und PressureFactor Eigenschaften auf point1point2 denselben Wert festgelegt sind, sind die beiden StylusPoint-Objekte gleich. Meldung wird angezeigt.
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 equal.");
}
else
{
MessageBox.Show("The two StylusPoint objects are not equal.");
}
If point1 = point2 Then
MessageBox.Show("The two StylusPoint objects are equal.")
Else
MessageBox.Show("The two StylusPoint objects are not equal.")
End If
Hinweise
Die entsprechende Methode für diesen Operator ist StylusPoint.Equals(StylusPoint, StylusPoint)