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

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

# CheckBox.Content

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

## Content

Gets or sets the content.

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 ControlBase Content {get; set;}
```

Python:

```python
checkBox.Content: ControlBase
```

### Returns

`ControlBase` — 

### Examples

C#:

```csharp
var label = new TextBlock { Text = "Risk 1%", ForegroundColor = Color.Orange, FontWeight = FontWeight.Bold };
var checkBox = new CheckBox { Content = label };
Chart.AddControl(checkBox);
```

Python:

```python
label = TextBlock()
label.Text = "Risk 1%"
label.ForegroundColor = Color.Orange
label.FontWeight = FontWeight.Bold
checkBox = CheckBox()
checkBox.Content = label
api.Chart.AddControl(checkBox)
```

