StylusPoint.Equals 메서드

정의

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

오버로드

Name Description
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와 비교할 수 있습니다.

반품

개체가 같으면 이고, 그렇지 않으면 .

예제

다음 예제에서는 두 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 개체가 같은지 확인합니다. 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 개체가 같은지 확인합니다. 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

적용 대상