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

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

# TextBox.BorderThickness

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

## BorderThickness

Gets or sets the border thickness. Property value can be set using Thickness, number, or a string new Thickness(5), new Thickness(1, 2, 3, 4), 5, "5", "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 Thickness BorderThickness {get; set;}
```

Python:

```python
textBox.BorderThickness: Thickness
```

### Returns

`Thickness` — 

### Examples

C#:

```csharp
var textBox = new TextBox { Text = "1.0850", BorderColor = Color.Gray, BorderThickness = new Thickness(0, 0, 0, 1) };
Chart.AddControl(textBox);
```

Python:

```python
textBox = TextBox()
textBox.Text = "1.0850"
textBox.BorderColor = Color.Gray
textBox.BorderThickness = Thickness(0, 0, 0, 1)
api.Chart.AddControl(textBox)
```

