Edit

Share via


Point.Equals Method

Definition

Overloads

Equals(Object)

Determines whether the specified object is a Point and whether it contains the same values as this Point.

Equals(Point)

Compares two Point structs for equality.

Remarks

This struct represents the .NET projection of the Windows Runtime (WinRT) Point struct. For more information, see Point in the UWP API reference.

For more information and examples of this member, see Point.Equals in the .NET Framework API reference. (Examples show WPF usage and might not translate directly to UWP XAML.)

Equals(Object)

Determines whether the specified object is a Point and whether it contains the same values as this Point.

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

Parameters

o
Object

The object to compare.

Returns

true if o is a Point and contains the same X and Y values as this Point; otherwise, false.

Applies to

Equals(Point)

Compares two Point structs for equality.

public:
 bool Equals(Windows::Foundation::Point value);
public bool Equals (Windows.Foundation.Point value);
override this.Equals : Windows.Foundation.Point -> bool
Public Function Equals (value As Point) As Boolean

Parameters

value
Point

The point to compare to this instance.

Returns

true if both Point structs contain the same X and Y values; otherwise, false.

Applies to