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

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

# TextBox.AcceptsReturn

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

## AcceptsReturn

Gets or sets a value that indicates how the text editing control responds when the user presses the ENTER 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 AcceptsReturn {get; set;}
```

Python:

```python
textBox.AcceptsReturn: bool
```

### Returns

`bool` — 

### Examples

C#:

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

Python:

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

