Point.Equals 方法
定义
重载
| 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)
指定此点实例是否包含与另一点相同的坐标。Specifies whether this point instance contains the same coordinates as another point.
public:
virtual bool Equals(System::Drawing::Point other);
public bool Equals (System.Drawing.Point other);
override this.Equals : System.Drawing.Point -> bool
Public Function Equals (other As Point) As Boolean
参数
- other
- Point
要测试是否相等的点。The point to test for equality.
返回
如果 other 具有与此点实例相同的坐标,则为 true。true if other has the same coordinates as this point instance.
实现
适用于
Equals(Object)
指定此点实例是否包含与指定对象相同的坐标。Specifies whether this point instance contains the same coordinates as the specified object.
public:
override bool Equals(System::Object ^ obj);
public override bool Equals (object? obj);
public override bool Equals (object obj);
override this.Equals : obj -> bool
Public Overrides Function Equals (obj As Object) As Boolean
参数
返回
如果 obj 是 Point 且具有与此点实例相同的坐标,则为 true。true if obj is a Point and has the same coordinates as this point instance.