---
title: "rx method"
url: "https://reference.aspose.com/svg/python-net/aspose.svg.builder/svgrectelementbuilder/rx/"
product: "Aspose.SVG for Python via .NET API References"
---


## rx {#float-aspose.svg.builder.LengthType}

Sets the 'rx' attribute of the SVG 'rect' element, specifying the horizontal radius of the rectangle's rounded corners.


### Returns 


The current instance of SVGRectElementBuilder for method chaining.


```python
def rx(self, value, type):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| value | float | The horizontal radius for the rectangle's rounded corners. |
| type | [`LengthType`](/svg/python-net/aspose.svg.builder/lengthtype) | The unit of measurement for the radius (default is pixels). |



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