## Rectangle.Equals method

Tests whether *obj* is a [`Rectangle`](../../rectangle) structure with the same location and size of this [`Rectangle`](../../rectangle) structure.

```csharp
public override bool Equals(object obj)
```

| Parameter | Type | Description |
| --- | --- | --- |
| obj | Object | The Object to test. |

### Return Value

This method returns true if *obj* is a [`Rectangle`](../../rectangle) structure and its [`X`](../x), [`Y`](../y), [`Width`](../width), and [`Height`](../height) properties are equal to the corresponding properties of this [`Rectangle`](../../rectangle) structure; otherwise, false.

### See Also

* struct [Rectangle](../../rectangle)
* namespace [Aspose.OCR](../../rectangle)
* assembly [Aspose.OCR](../../../)

<!-- DO NOT EDIT: generated by xmldocmd for Aspose.OCR.dll -->
