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

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

# Button.BorderColor

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

## BorderColor

Gets or sets the border line color. Check the Color class for the ARGB (alpha, red, green, blue) color values, or use the strings Color.Red, Color.FromName("Red"), Color.FromArgb(255, 0, 0), Color.FromHex("#ff0000"), "Red", "#ff0000".

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
button.BorderColor: Color
```

### Returns

`Color` — 

### Examples

C#:

```csharp
var button = new Button { Text = "Sell", BorderColor = Color.Red, BorderThickness = 1 };
Chart.AddControl(button);
```

Python:

```python
button = Button()
button.Text = "Sell"
button.BorderColor = Color.Red
button.BorderThickness = Thickness(1)
api.Chart.AddControl(button)
```

