
## SizeF class

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



The SizeF type exposes the following members:

### Constructors
| Constructor | Description |
| :- | :- |
| [__init__](/cad/python-net/aspose.cad/sizef/__init__/#aspose.cad.SizeF) | Initializes a new instance of the [`SizeF`](/cad/python-net/aspose.cad/sizef) structure from the specified [`SizeF`](/cad/python-net/aspose.cad/sizef). |
| [__init__](/cad/python-net/aspose.cad/sizef/__init__/#aspose.cad.PointF) | Initializes a new instance of the [`SizeF`](/cad/python-net/aspose.cad/sizef) structure from the specified [`PointF`](/cad/python-net/aspose.cad/pointf). |
| [__init__](/cad/python-net/aspose.cad/sizef/__init__/#float-float) | Initializes a new instance of the [`SizeF`](/cad/python-net/aspose.cad/sizef) structure from the specified dimensions. |
| [__init__](/cad/python-net/aspose.cad/sizef/__init__/#) | Constructs a new instance of SizeF |


### Properties
| Property | Description |
| :- | :- |
| [empty](/cad/python-net/aspose.cad/sizef/empty) | Gets a new instance of the [`SizeF`](/cad/python-net/aspose.cad/sizef) structure that has [`SizeF.width`](/cad/python-net/aspose.cad/sizef#width) and [`SizeF.height`](/cad/python-net/aspose.cad/sizef#height) values set to zero. |
| [is_empty](/cad/python-net/aspose.cad/sizef/is_empty) | Gets a value indicating whether this [`SizeF`](/cad/python-net/aspose.cad/sizef) has zero width and height. |
| [width](/cad/python-net/aspose.cad/sizef/width) | Gets or sets the horizontal component of this [`SizeF`](/cad/python-net/aspose.cad/sizef). |
| [height](/cad/python-net/aspose.cad/sizef/height) | Gets or sets the vertical component of this [`SizeF`](/cad/python-net/aspose.cad/sizef). |


### Methods
| Method | Description |
| :- | :- |
| [add](/cad/python-net/aspose.cad/sizef/add/#aspose.cad.SizeF-aspose.cad.SizeF) | Adds the width and height of one [`SizeF`](/cad/python-net/aspose.cad/sizef) structure to the width and height of another [`SizeF`](/cad/python-net/aspose.cad/sizef) structure. |
| [subtract](/cad/python-net/aspose.cad/sizef/subtract/#aspose.cad.SizeF-aspose.cad.SizeF) | Subtracts the width and height of one [`SizeF`](/cad/python-net/aspose.cad/sizef) structure from the width and height of another [`SizeF`](/cad/python-net/aspose.cad/sizef) structure. |
| [to_point_f](/cad/python-net/aspose.cad/sizef/to_point_f/#) | Converts a [`SizeF`](/cad/python-net/aspose.cad/sizef) to a [`PointF`](/cad/python-net/aspose.cad/pointf). |
| [to_size](/cad/python-net/aspose.cad/sizef/to_size/#) | Converts a [`SizeF`](/cad/python-net/aspose.cad/sizef) to a [`Size`](/cad/python-net/aspose.cad/size) structure with truncated size values. |



### See Also
* module [`aspose.cad`](..)
* class [`PointF`](/cad/python-net/aspose.cad/pointf)
* class [`Size`](/cad/python-net/aspose.cad/size)
* class [`SizeF`](/cad/python-net/aspose.cad/sizef)
