StylusPoint.Equality(StylusPoint, StylusPoint) 연산자

정의

지정된 두 StylusPoint 개체를 비교하여 같은지 여부를 확인합니다.

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

매개 변수

stylusPoint1
StylusPoint

비교할 첫 번째 StylusPoint입니다.

stylusPoint2
StylusPoint

비교할 두 번째 StylusPoint입니다.

반환

StylusPoint 개체가 같으면 true이고, 그렇지 않으면 false입니다.

예제

다음 예제에서는 두 StylusPoint 같음에 대 한 개체입니다. 및 point2X, YPressureFactor 속성 point1 이 동일한 값으로 설정되기 때문에 "두 StylusPoint 개체는 동일합니다." 메시지가 나타납니다.

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

설명

이 연산자에 대 한 해당 메서드는 StylusPoint.Equals(StylusPoint, StylusPoint)

적용 대상