Point.Equals Method

Definition

Overloads

Equals(Point)

Specifies whether this point instance contains the same coordinates as another point.

Equals(Object)

Specifies whether this point instance contains the same coordinates as the specified object.

Equals(Point)

Source:
Point.cs
Source:
Point.cs
Source:
Point.cs

Specifies whether this point instance contains the same coordinates as another point.

C#
public readonly bool Equals(System.Drawing.Point other);
C#
public bool Equals(System.Drawing.Point other);

Parameters

other
Point

The point to test for equality.

Returns

true if other has the same coordinates as this point instance.

Implements

Applies to

.NET 9 and other versions
Product Versions
.NET Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9
.NET Standard 2.1

Equals(Object)

Source:
Point.cs
Source:
Point.cs
Source:
Point.cs

Specifies whether this point instance contains the same coordinates as the specified object.

C#
public override readonly bool Equals(object? obj);
C#
public override bool Equals(object obj);

Parameters

obj
Object

The Object to test for equality.

Returns

true if obj is a Point and has the same coordinates as this point instance.

Applies to

.NET 9 and other versions
Product Versions
.NET Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0, 2.1