---
id: "P:cAlgo.API.Border.CornerRadius"
kind: "property"
type: "T:cAlgo.API.Border"
url: "https://help.ctrader.com/ctrader-algo/references/Controls/Border/CornerRadius/"
---

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

# Border.CornerRadius

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

## CornerRadius

Gets or sets the border corner radius. Property value can be set using CornerRadius, number, or a string: new CornerRadius(5), new CornerRadius(1, 2, 3, 4).

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 CornerRadius CornerRadius {get; set;}
```

Python:

```python
border.CornerRadius: CornerRadius
```

### Returns

`CornerRadius` — 

### Examples

C#:

```csharp
var border = new Border { BackgroundColor = Color.SteelBlue, CornerRadius = new CornerRadius(10), Padding = 6 };
border.Child = new TextBlock { Text = "Rounded" };
Chart.AddControl(border);
```

Python:

```python
border = Border()
border.BackgroundColor = Color.SteelBlue
border.CornerRadius = CornerRadius(10)
border.Padding = Thickness(6)
textBlock = TextBlock()
textBlock.Text = "Rounded"
border.Child = textBlock
api.Chart.AddControl(border)
```

