
## Size class

Stores an ordered pair of integers, typically the width and height of a rectangle.



The Size type exposes the following members:
## Constructors
| Name | Description |
| :- | :- |
| `Size(width, height)` | Initializes a new instance of the Size class |
| `Size()` | Initializes a new instance of the Size class |
## Properties
| Name | Description |
| :- | :- |
| `height` | Gets or sets the vertical component of this [Size](/page/python-net/aspose.page.drawing/size/). |
| `width` | Gets or sets the horizontal component of this [Size](/page/python-net/aspose.page.drawing/size/). |
| `is_empty` | Tests whether this [Size](/page/python-net/aspose.page.drawing/size/) has width and height of 0. |
| `EMPTY` | Gets a [Size](/page/python-net/aspose.page.drawing/size/) structure that has a [height](/page/python-net/aspose.page.drawing/size/) and [width](/page/python-net/aspose.page.drawing/size/) value of 0. |
## Methods
| Name | Description |
| :- | :- |
| `clone()` | Clones this Aspose.Page.Drawing.Size. |
| `equals(obj)` | Tests to see whether the specified object is a [Size](/page/python-net/aspose.page.drawing/size/) with the same dimensions as this [Size](/page/python-net/aspose.page.drawing/size/). |
| `get_hash_code()` | Returns a hash code for this [Size](/page/python-net/aspose.page.drawing/size/) structure. |
| `to_string()` | Creates a human-readable string that represents this [Size](/page/python-net/aspose.page.drawing/size/). |

### See Also

* module [`aspose.page.drawing`](/page/python-net/aspose.page.drawing/)
* package [`aspose.page`](/page/python-net/)

