# rx property

Gets or sets the x-axis radius of a rounded corner rectangle.

## Syntax

```HRESULT value = object.put_rx(ISVGAnimatedLength* v);HRESULT value = object.get_rx(ISVGAnimatedLength** p);
```

## Property values

Type: Object

The x-axis radius of the ellipse that is used to round the corners of a rectangle. A negative value is an error.

## Remarks

If you properly specify a value for the ISVGRectElement::rx property but not for the ISVGRectElement::ry property, the rect element is rendered with the effective value of ISVGRectElement::ry equal to ISVGRectElement::rx. If you properly specify a value for ISVGRectElement::ry but not for ISVGRectElement::rx, the rect element is rendered with the effective value of ISVGRectElement::rx equal to ISVGRectElement::ry.

If you do not property specify ISVGRectElement::rx or ISVGRectElement::ry , the rect element is rendered without rounding, resulting in square corners.

If ISVGRectElement::rx is greater than half of the width of the rectangle, the rect element is rendered with the effective value for ISVGRectElement::rx as half of the width of the rectangle. If ISVGRectElement::ry is greater than half of the height of the rectangle, the rect element is rendered with the effective value for ISVGRectElement::ry as half of the height of the rectangle.

ellipse