PointF.Equals 方法

定义

重载

Equals(PointF)
Equals(Object)

指定此 PointF 是否包含与指定 Object 有相同的坐标。Specifies whether this PointF contains the same coordinates as the specified Object.

Equals(PointF)

public:
 virtual bool Equals(System::Drawing::PointF other);
public bool Equals (System.Drawing.PointF other);
override this.Equals : System.Drawing.PointF -> bool
Public Function Equals (other As PointF) As Boolean

参数

other
PointF

返回

实现

Equals(Object)

指定此 PointF 是否包含与指定 Object 有相同的坐标。Specifies whether this PointF contains the same coordinates as the specified Object.

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

参数

obj
Object

要测试的 ObjectThe Object to test.

返回

如果 true 是一个 obj,并且具有与此 PointF 相同的坐标,则此方法将返回 PointThis method returns true if obj is a PointF and has the same coordinates as this Point.

适用于