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

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

# DefaultStyles.CheckBoxStyle

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

## CheckBoxStyle

Gets the Checkbox default style.

Environments: Desktop supported · CLI supported · Cloud supported.

C#:

```csharp
public static Style CheckBoxStyle {get;}
```

Python:

```python
DefaultStyles.CheckBoxStyle: Style
```

### Returns

`Style` — 

### Examples

C#:

```csharp
var style = new Style(DefaultStyles.CheckBoxStyle);
style.Set(ControlProperty.ForegroundColor, Color.Orange);
Chart.AddControl(new CheckBox { Text = "Use trailing stop", Style = style });
```

Python:

```python
style = Style(DefaultStyles.CheckBoxStyle)
style.Set(ControlProperty.ForegroundColor, Color.Orange)
checkBox = CheckBox()
checkBox.Text = "Use trailing stop"
checkBox.Style = style
api.Chart.AddControl(checkBox)
```

