StylusPoint.Inequality(StylusPoint, StylusPoint) 연산자

정의

지정된 StylusPoint 개체가 다른지 여부를 나타내는 부울 값을 반환합니다.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

비교할 첫 번째 StylusPoint입니다.The first StylusPoint to compare.

stylusPoint2
StylusPoint

비교할 두 번째 StylusPoint입니다.The second StylusPoint to compare.

반환

Boolean

지정된 StylusPoint 개체가 다르면 true이고, 그렇지 않으면 false입니다.true if the specified StylusPoint objects are unequal; otherwise, false.

예제

다음 예제에서는 두 개를 선택 하는 방법에 설명 StylusPoint 개체가 다른 지 합니다.The following example demonstrates how to check two StylusPoint objects for inequality. 때문에 합니다 X, Y, 및 PressureFactor 속성을 point1point2 동일 하 게 설정 하는 값을 "두 StylusPoint 개체가 같습니다."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

설명

이 연산자에 대해 해당 하는 방법은의 부정 EqualsThe equivalent method for this operator is the negation of Equals

적용 대상