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

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

# Button.BorderThickness

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

## BorderThickness

Gets or sets the border thickness.

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

Python:

```python
button.BorderThickness: Thickness
```

### Returns

`Thickness` — 

### Examples

C#:

```csharp
var button = new Button { Text = "Close all", BorderColor = Color.Orange, BorderThickness = new Thickness(2) };
Chart.AddControl(button);
Print("Border thickness: {0}", button.BorderThickness.Left);
```

Python:

```python
button = Button()
button.Text = "Close all"
button.BorderColor = Color.Orange
button.BorderThickness = Thickness(2)
api.Chart.AddControl(button)
api.Print(f"Border thickness: {button.BorderThickness.Left}")
```

