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

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

# ToggleButton.CornerRadius

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

### Returns

`CornerRadius` — 

### Examples

C#:

```csharp
var toggleButton = new ToggleButton { Text = "Hedge", CornerRadius = new CornerRadius(10) };
Chart.AddControl(toggleButton);
```

Python:

```python
toggleButton = ToggleButton()
toggleButton.Text = "Hedge"
toggleButton.CornerRadius = CornerRadius(10)
api.Chart.AddControl(toggleButton)
```

