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

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

# TextBox.AcceptsTab

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

## AcceptsTab

Gets or sets a value that indicates how the text editing control responds when the user presses the TAB key.

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 bool AcceptsTab {get; set;}
```

Python:

```python
textBox.AcceptsTab: bool
```

### Returns

`bool` — 

### Examples

C#:

```csharp
var scriptTextBox = new TextBox { AcceptsTab = true, AcceptsReturn = true, MinLines = 5, Width = 250 };
Chart.AddControl(scriptTextBox);
```

Python:

```python
scriptTextBox = TextBox()
scriptTextBox.AcceptsTab = True
scriptTextBox.AcceptsReturn = True
scriptTextBox.MinLines = 5
scriptTextBox.Width = 250
api.Chart.AddControl(scriptTextBox)
```

