
## rectangle {#float-float-float-float-float-float-aspose.svg.builder.LengthType}

Defines a rectangular clip path with optional rounded corners.


### Returns 


The current instance of ClipPathBuilder for method chaining.


```python
def rectangle(self, x, y, width, height, rx, ry, type):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| x | float | X-coordinate of the top-left corner of the rectangle. |
| y | float | Y-coordinate of the top-left corner of the rectangle. |
| width | float | Width of the rectangle. |
| height | float | Height of the rectangle. |
| rx | float | Horizontal radius of the corners. |
| ry | float | Vertical radius of the corners. |
| type | [`LengthType`](/svg/python-net/aspose.svg.builder/lengthtype) | The unit type for the dimensions. |



### See Also
* module [`aspose.svg.builder`](../../)
* class [`ClipPathBuilder`](/svg/python-net/aspose.svg.builder/clippathbuilder)
