
## draw_rectangle(pin_x, pin_y, width, height) {#float-float-float-float}

The process of drawing rectangle.

### Returns 


The unique ID of the shape within shapes collection on the specified page.


```python
def draw_rectangle(self, pin_x, pin_y, width, height):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| pin_x | float | Specifies the x-coordinate of the shape's pin (center of rotation) in relation to the page. |
| pin_y | float | Specifies the y-coordinate of the shape's pin (center of rotation) in relation to the page. |
| width | float | Specifies the width of the shape |
| height | float | Specifies the height of the shape |



### See Also
* module [aspose.diagram](../../)
* class [Page](/diagram/python-net/aspose.diagram/page)
