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

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

# TextBox.CharacterCasing

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

## CharacterCasing

Gets or sets whether the TextBox control modifies the case of characters as they are typed.

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

Python:

```python
textBox.CharacterCasing: CharacterCasing
```

### Returns

`CharacterCasing` — 

### Examples

C#:

```csharp
var symbolTextBox = new TextBox { Text = "eurusd", CharacterCasing = CharacterCasing.Upper, Width = 100 };
Chart.AddControl(symbolTextBox);
```

Python:

```python
symbolTextBox = TextBox()
symbolTextBox.Text = "eurusd"
symbolTextBox.CharacterCasing = CharacterCasing.Upper
symbolTextBox.Width = 100
api.Chart.AddControl(symbolTextBox)
```

