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

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

# TextBox.TextWrapping

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

## TextWrapping

Gets or sets how the text box should wrap 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 TextWrapping TextWrapping {get; set;}
```

Python:

```python
textBox.TextWrapping: TextWrapping
```

### Returns

`TextWrapping` — 

### Examples

C#:

```csharp
var notesTextBox = new TextBox { Width = 200, MinLines = 3, AcceptsReturn = true, TextWrapping = TextWrapping.Wrap };
Chart.AddControl(notesTextBox);
```

Python:

```python
notesTextBox = TextBox()
notesTextBox.Width = 200
notesTextBox.MinLines = 3
notesTextBox.AcceptsReturn = True
notesTextBox.TextWrapping = TextWrapping.Wrap
api.Chart.AddControl(notesTextBox)
```

