Rectangle.Equals Rectangle.Equals Rectangle.Equals Rectangle.Equals Method

Definition

Overloads

Equals(Rectangle) Equals(Rectangle) Equals(Rectangle) Equals(Rectangle)
Equals(Object) Equals(Object) Equals(Object) Equals(Object)

Tests whether obj is a Rectangle structure with the same location and size of this Rectangle structure.

Equals(Rectangle) Equals(Rectangle) Equals(Rectangle) Equals(Rectangle)

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

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

Tests whether obj is a Rectangle structure with the same location and size of this Rectangle structure.

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
Parameters
obj
Object Object Object Object

The Object to test.

Returns

This method returns true if obj is a Rectangle structure and its X, Y, Width, and Height properties are equal to the corresponding properties of this Rectangle structure; otherwise, false.

Applies to