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

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

# Button.CornerRadius

Member of [Button](https://help.ctrader.com/ctrader-algo/references/Controls/Button/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
button.CornerRadius: CornerRadius
```

### Returns

`CornerRadius` — 

### Examples

C#:

```csharp
var button = new Button { Text = "Buy", CornerRadius = new CornerRadius(12) };
Chart.AddControl(button);
```

Python:

```python
button = Button()
button.Text = "Buy"
button.CornerRadius = CornerRadius(12)
api.Chart.AddControl(button)
```

