
## __init__ {#}

Constructs a new instance of RectangleF



```python
def __init__(self):
    ...
```




## __init__ {#aspose.cad.PointF-aspose.cad.SizeF}

Initializes a new instance of the [`RectangleF`](/cad/python-net/aspose.cad/rectanglef) structure with the specified location and size.



```python
def __init__(self, location, size):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| location | [`PointF`](/cad/python-net/aspose.cad/pointf) | A [`PointF`](/cad/python-net/aspose.cad/pointf) that represents the upper-left corner of the rectangular region. |
| size | [`SizeF`](/cad/python-net/aspose.cad/sizef) | A [`SizeF`](/cad/python-net/aspose.cad/sizef) that represents the width and height of the rectangular region. |


## __init__ {#float-float-float-float}

Initializes a new instance of the [`RectangleF`](/cad/python-net/aspose.cad/rectanglef) structure with the specified location and size.



```python
def __init__(self, x, y, width, height):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| x | float | The x-coordinate of the upper-left corner of the rectangle. |
| y | float | The y-coordinate of the upper-left corner of the rectangle. |
| width | float | The width of the rectangle. |
| height | float | The height of the rectangle. |



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