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

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

# CheckBox.Text

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

## Text

Gets or sets the checkbox text.

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 string Text {get; set;}
```

Python:

```python
checkBox.Text: str
```

### Returns

`string` — 

### Examples

C#:

```csharp
var checkBox = new CheckBox { Text = "Show spread" };
Chart.AddControl(checkBox);
Print("Check box text: {0}", checkBox.Text);
```

Python:

```python
checkBox = CheckBox()
checkBox.Text = "Show spread"
api.Chart.AddControl(checkBox)
api.Print(f"Check box text: {checkBox.Text}")
```

