---
id: "P:cAlgo.API.Rectangle.RadiusX"
kind: "property"
type: "T:cAlgo.API.Rectangle"
url: "https://help.ctrader.com/ctrader-algo/references/Controls/Layout/Shapes/Rectangle/RadiusX/"
---

> Documentation index for agents: https://help.ctrader.com/ctrader-algo/llms.txt · machine index: https://help.ctrader.com/ctrader-algo/api.json

# Rectangle.RadiusX

Member of [Rectangle](https://help.ctrader.com/ctrader-algo/references/Controls/Layout/Shapes/Rectangle/index.md).

## RadiusX

Gets or sets the x-axis radius of the ellipse that is used to round the corners of the rectangle.

Environments: Desktop supported · CLI not supported · Cloud not supported.

- CLI: Accepted without error but never displayed, so control events such as Click are never raised.
- Cloud: Accepted without error but never displayed, so control events such as Click are never raised.

C#:

```csharp
public double RadiusX {get; set;}
```

Python:

```python
rectangle.RadiusX: float
```

### Returns

`double` — 

### Examples

C#:

```csharp
var rectangle = new Rectangle { Width = 150, Height = 60, FillColor = Color.Teal, RadiusX = 10, RadiusY = 10 };
Chart.AddControl(rectangle);
Print("Corner x radius: {0}", rectangle.RadiusX);
```

Python:

```python
rectangle = Rectangle()
rectangle.Width = 150
rectangle.Height = 60
rectangle.FillColor = Color.Teal
rectangle.RadiusX = 10
rectangle.RadiusY = 10
api.Chart.AddControl(rectangle)
api.Print(f"Corner x radius: {rectangle.RadiusX}")
```

