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

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

# TextBox.BorderColor

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

## BorderColor

Gets or sets the color of the text box border.

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

Python:

```python
textBox.BorderColor: Color
```

### Returns

`Color` — 

### Examples

C#:

```csharp
var textBox = new TextBox { Text = "0.01", BorderColor = Color.SteelBlue, BorderThickness = 1 };
Chart.AddControl(textBox);
```

Python:

```python
textBox = TextBox()
textBox.Text = "0.01"
textBox.BorderColor = Color.SteelBlue
textBox.BorderThickness = Thickness(1)
api.Chart.AddControl(textBox)
```

