StylusPoint.Equals 메서드

정의

StylusPoint 개체가 같은지 비교합니다.

오버로드

Equals(Object)

지정된 개체가 StylusPoint와 같은지 여부를 나타내는 값을 반환합니다.

Equals(StylusPoint)

지정된 StylusPoint가 현재 StylusPoint와 같은지 여부를 나타내는 부울 값을 반환합니다.

Equals(StylusPoint, StylusPoint)

지정된 두 StylusPoint 개체가 같은지 여부를 나타내는 부울 값을 반환합니다.

Equals(Object)

지정된 개체가 StylusPoint와 같은지 여부를 나타내는 값을 반환합니다.

public:
 override bool Equals(System::Object ^ o);
public override bool Equals (object o);
override this.Equals : obj -> bool
Public Overrides Function Equals (o As Object) As Boolean

매개 변수

o
Object

현재 StylusPoint와 비교할 StylusPoint입니다.

반환

개체가 동일하면 true이고, 그렇지 않으면 false입니다.

예제

다음 예제에서는 두 StylusPoint 같음에 대 한 개체입니다. 및 의 X, YPressureFactor 속성 point1point2 이 동일한 값으로 설정되기 때문에 "두 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 (point2.Equals(point1))
{
    MessageBox.Show("The two StylusPoint objects are equal.");
}
else
{
    MessageBox.Show("The two StylusPoint objects are not equal.");
}
If point2.Equals(point1) Then
    MessageBox.Show("The two StylusPoint objects are equal.")
Else
    MessageBox.Show("The two StylusPoint objects are not equal.")
End If

적용 대상

Equals(StylusPoint)

지정된 StylusPoint가 현재 StylusPoint와 같은지 여부를 나타내는 부울 값을 반환합니다.

public:
 virtual bool Equals(System::Windows::Input::StylusPoint value);
public bool Equals (System.Windows.Input.StylusPoint value);
override this.Equals : System.Windows.Input.StylusPoint -> bool
Public Function Equals (value As StylusPoint) As Boolean

매개 변수

value
StylusPoint

현재 StylusPoint와 비교할 StylusPoint입니다.

반환

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

구현

예제

다음 예제에서는 두 StylusPoint 같음에 대 한 개체입니다. 및 의 X, YPressureFactor 속성 point1point2 이 동일한 값으로 설정되기 때문에 "두 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 (point2.Equals(point1))
{
    MessageBox.Show("The two StylusPoint objects are equal.");
}
else
{
    MessageBox.Show("The two StylusPoint objects are not equal.");
}
If point2.Equals(point1) Then
    MessageBox.Show("The two StylusPoint objects are equal.")
Else
    MessageBox.Show("The two StylusPoint objects are not equal.")
End If

적용 대상

Equals(StylusPoint, StylusPoint)

지정된 두 StylusPoint 개체가 같은지 여부를 나타내는 부울 값을 반환합니다.

public:
 static bool Equals(System::Windows::Input::StylusPoint stylusPoint1, System::Windows::Input::StylusPoint stylusPoint2);
public static bool Equals (System.Windows.Input.StylusPoint stylusPoint1, System.Windows.Input.StylusPoint stylusPoint2);
static member Equals : System.Windows.Input.StylusPoint * System.Windows.Input.StylusPoint -> bool
Public Shared Function Equals (stylusPoint1 As StylusPoint, stylusPoint2 As StylusPoint) As Boolean

매개 변수

stylusPoint1
StylusPoint

비교할 첫 번째 StylusPoint입니다.

stylusPoint2
StylusPoint

비교할 두 번째 StylusPoint입니다.

반환

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

예제

다음 예제에서는 두 StylusPoint 같음에 대 한 개체입니다. 및 의 X, YPressureFactor 속성 point1point2 이 동일한 값으로 설정되기 때문에 "두 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 (StylusPoint.Equals(point1, point2))
{
    MessageBox.Show("The two StylusPoint objects are equal.");
}
else
{
    MessageBox.Show("The two StylusPoint objects are not equal.");
}
If StylusPoint.Equals(point1, point2) Then
    MessageBox.Show("The two StylusPoint objects are equal.")
Else
    MessageBox.Show("The two StylusPoint objects are not equal.")
End If

적용 대상