{{< psd/tize >}}
## SizeF structure

Stores an ordered pair of floating-point numbers, typically the width and height of a rectangle.

```csharp
public struct SizeF
```

## Constructors

| Name | Description |
| --- | --- |
| [SizeF](sizef/#constructor)(PointF) | Initializes a new instance of the `SizeF` structure from the specified [`PointF`](../pointf/). |
| [SizeF](sizef/#constructor_1)(SizeF) | Initializes a new instance of the `SizeF` structure from the specified `SizeF`. |
| [SizeF](sizef/#constructor_2)(float, float) | Initializes a new instance of the `SizeF` structure from the specified dimensions. |

## Properties

| Name | Description |
| --- | --- |
| static [Empty](../../aspose.psd/sizef/empty/) { get; } | Gets a new instance of the `SizeF` structure that has [`Width`](./width/) and [`Height`](./height/) values set to zero. |
| [Height](../../aspose.psd/sizef/height/) { get; set; } | Gets or sets the vertical component of this `SizeF`. |
| [IsEmpty](../../aspose.psd/sizef/isempty/) { get; } | Gets a value indicating whether this `SizeF` has zero width and height. |
| [Width](../../aspose.psd/sizef/width/) { get; set; } | Gets or sets the horizontal component of this `SizeF`. |

## Methods

| Name | Description |
| --- | --- |
| static [Add](../../aspose.psd/sizef/add/)(SizeF, SizeF) | Adds the width and height of one `SizeF` structure to the width and height of another `SizeF` structure. |
| static [Subtract](../../aspose.psd/sizef/subtract/)(SizeF, SizeF) | Subtracts the width and height of one `SizeF` structure from the width and height of another `SizeF` structure. |
| override [Equals](../../aspose.psd/sizef/equals/)(object) | Tests to see whether the specified object is a `SizeF` with the same dimensions as this `SizeF`. |
| override [GetHashCode](../../aspose.psd/sizef/gethashcode/)() | Returns a hash code for this [`Size`](../size/) structure. |
| [ToPointF](../../aspose.psd/sizef/topointf/)() | Converts a `SizeF` to a [`PointF`](../pointf/). |
| [ToSize](../../aspose.psd/sizef/tosize/)() | Converts a `SizeF` to a [`Size`](../size/) structure with truncated size values. |
| override [ToString](../../aspose.psd/sizef/tostring/)() | Creates a human-readable string that represents this `SizeF`. |
| [operator +](../../aspose.psd/sizef/op_addition/) | Adds the width and height of one `SizeF` structure to the width and height of another `SizeF` structure. |
| [operator ==](../../aspose.psd/sizef/op_equality/) | Tests whether two `SizeF` structures are equal. |
| [explicit operator](../../aspose.psd/sizef/op_explicit/) | Converts the specified `SizeF` to a [`PointF`](../pointf/). |
| [operator !=](../../aspose.psd/sizef/op_inequality/) | Tests whether two `SizeF` structures are different. |
| [operator -](../../aspose.psd/sizef/op_subtraction/) | Subtracts the width and height of one `SizeF` structure from the width and height of another `SizeF` structure. |

### See Also

* namespace [Aspose.PSD](../../aspose.psd/)
* assembly [Aspose.PSD](../../)


