## Size structure

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

```csharp
public struct Size
```

## Constructors

| Name | Description |
| --- | --- |
| [Size](size/)(int, int) | Initializes a new instance of the `Size` class from the specified dimensions. |

## Properties

| Name | Description |
| --- | --- |
| [Height](../../aspose.page.drawing/size/height/) { get; set; } | Gets or sets the vertical component of this `Size`. |
| [IsEmpty](../../aspose.page.drawing/size/isempty/) { get; } | Tests whether this `Size` has width and height of 0. |
| [Width](../../aspose.page.drawing/size/width/) { get; set; } | Gets or sets the horizontal component of this `Size`. |

## Methods

| Name | Description |
| --- | --- |
| [Clone](../../aspose.page.drawing/size/clone/)() | Clones this Aspose.Page.Drawing.Size. |
| [Equals](../../aspose.page.drawing/size/equals/#equals)(object) | Tests to see whether the specified object is a `Size` with the same dimensions as this `Size`. |
| [GetHashCode](../../aspose.page.drawing/size/gethashcode/#gethashcode)() | Returns a hash code for this `Size` structure. |
| [ToString](../../aspose.page.drawing/size/tostring/#tostring)() | Creates a human-readable string that represents this `Size`. |
| [operator ==](../../aspose.page.drawing/size/op_equality/) | Tests whether two `Size` structures are equal. |
| [operator !=](../../aspose.page.drawing/size/op_inequality/) | Tests whether two `Size` structures are different. |

## Fields

| Name | Description |
| --- | --- |
| static readonly [Empty](../../aspose.page.drawing/size/empty/) | Gets a `Size` structure that has a [`Height`](./height/) and [`Width`](./width/) value of 0. |

### See Also

* namespace [Aspose.Page.Drawing](../../aspose.page.drawing/)
* assembly [Aspose.Page](../../)


