
## __init__ {#}

Constructs a new instance of Rectangle



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




## __init__ {#aspose.cad.Point-aspose.cad.Size}

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



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


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


## __init__ {#int-int-int-int}

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



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


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



### See Also
* module [`aspose.cad`](../../)
* class [`Point`](/cad/python-net/aspose.cad/point)
* class [`Rectangle`](/cad/python-net/aspose.cad/rectangle)
* class [`Size`](/cad/python-net/aspose.cad/size)
