
## Rectangle class

Stores a set of four integers that represent the location and size of a rectangle.

The Rectangle type exposes the following members:
## Constructors
| Name | Description |
| :- | :- |
|Rectangle(x, y, width, height)|Initializes a new instance of the Rectangle class|
|Rectangle()|Initializes a new instance of the Rectangle class|
## Properties
| Name | Description |
| :- | :- |
|empty|Gets a new instance of the [Rectangle](/ocr/python-net/aspose.ocr/rectangle/) structure that has [None](/ocr/python-net/aspose.ocr/rectangle/), [None](/ocr/python-net/aspose.ocr/rectangle/), [None](/ocr/python-net/aspose.ocr/rectangle/) and [None](/ocr/python-net/aspose.ocr/rectangle/) values set to zero.|
|left|Gets or sets the x-coordinate of the left edge of this [Rectangle](/ocr/python-net/aspose.ocr/rectangle/) structure.|
|top|Gets or sets the y-coordinate of the top edge of this [Rectangle](/ocr/python-net/aspose.ocr/rectangle/) structure.|
|right|Gets or sets the x-coordinate that is the sum of [None](/ocr/python-net/aspose.ocr/rectangle/) and [None](/ocr/python-net/aspose.ocr/rectangle/) property values of this [Rectangle](/ocr/python-net/aspose.ocr/rectangle/) structure.|
|bottom|Gets or sets the y-coordinate that is the sum of the [None](/ocr/python-net/aspose.ocr/rectangle/) and [None](/ocr/python-net/aspose.ocr/rectangle/) property values of this [Rectangle](/ocr/python-net/aspose.ocr/rectangle/) structure.|
|is_empty|Gets a value indicating whether all numeric properties of this [Rectangle](/ocr/python-net/aspose.ocr/rectangle/) have values of zero.|
|height|The rectangle width.|
|width|The rectangle height.|
|x|The rectangle x location.|
|y|The rectangle y location.|
## Methods
| Name | Description |
| :- | :- |
|contains(x, y)|Determines if the specified point is contained within this [Rectangle](/ocr/python-net/aspose.ocr/rectangle/) structure.|

### See Also

* namespace [aspose.ocr](/ocr/python-net/aspose.ocr/)
* assembly [Aspose.ocr](/ocr/python-net/)

