StylusPoint.Equals 메서드

정의

StylusPoint 개체가 같은지 비교합니다.Compares two StylusPoint objects for equality.

오버로드

Equals(Object)

지정된 개체가 StylusPoint와 같은지 여부를 나타내는 값을 반환합니다.Returns a value indicating whether the specified object is equal to the StylusPoint.

Equals(StylusPoint)

지정된 StylusPoint가 현재 StylusPoint와 같은지 여부를 나타내는 부울 값을 반환합니다.Returns a Boolean value that indicates whether the specified StylusPoint is equal to the current StylusPoint.

Equals(StylusPoint, StylusPoint)

지정된 두 StylusPoint 개체가 같은지 여부를 나타내는 부울 값을 반환합니다.Returns a Boolean value that indicates whether the two specified StylusPoint objects are equal.

Equals(Object)

지정된 개체가 StylusPoint와 같은지 여부를 나타내는 값을 반환합니다.Returns a value indicating whether the specified object is equal to the 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입니다.The StylusPoint to compare to the current StylusPoint.

반환

Boolean

개체가 동일하면 true이고, 그렇지 않으면 false입니다.true if the objects are equal; otherwise, false.

예제

다음 예제에서는 두 StylusPoint 같음에 대 한 개체입니다.The following example checks two StylusPoint objects for equality. 때문에 합니다 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 (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와 같은지 여부를 나타내는 부울 값을 반환합니다.Returns a Boolean value that indicates whether the specified StylusPoint is equal to the current 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입니다.The StylusPoint to compare to the current StylusPoint.

반환

Boolean

StylusPoint 개체가 같으면 true이고, 그렇지 않으면 false입니다.true if the StylusPoint objects are equal; otherwise, false.

구현

예제

다음 예제에서는 두 StylusPoint 같음에 대 한 개체입니다.The following example checks two StylusPoint objects for equality. 때문에 합니다 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 (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 개체가 같은지 여부를 나타내는 부울 값을 반환합니다.Returns a Boolean value that indicates whether the two specified StylusPoint objects are equal.

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입니다.The first StylusPoint to compare.

stylusPoint2
StylusPoint

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

반환

Boolean

StylusPoint 개체가 같으면 true이고, 그렇지 않으면 false입니다.true if the StylusPoint objects are equal; otherwise, false.

예제

다음 예제에서는 두 StylusPoint 같음에 대 한 개체입니다.The following example checks two StylusPoint objects for equality. 때문에 합니다 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 (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

적용 대상