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

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

# Rectangle.RadiusY

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

## RadiusY

Gets or sets the y-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 RadiusY {get; set;}
```

Python:

```python
rectangle.RadiusY: float
```

### Returns

`double` — 

### Examples

C#:

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

Python:

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

