# Rectangle.EqualsRectangle.EqualsRectangle.EqualsRectangle.Equals Method

## Sobrecargas

 Equals(Rectangle) Equals(Rectangle) Equals(Rectangle) Equals(Rectangle) Equals(Object) Equals(Object) Equals(Object) Equals(Object) Testa se `obj` é uma estrutura Rectangle com o mesmo local e tamanho desta estrutura Rectangle.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``

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

Testa se `obj` é uma estrutura Rectangle com o mesmo local e tamanho desta estrutura Rectangle.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``

#### Parâmetros

obj
Object Object Object Object

O Object a ser testado.The Object to test.

#### Retornos

Este método retornará `true` se `obj` for uma estrutura Rectangle e suas propriedades X, Y, Width e Height forem iguais às propriedades correspondentes desta estrutura Rectangle; caso contrário, `false`.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`.