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

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

# TextBox.IsReadOnlyCaretVisible

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

## IsReadOnlyCaretVisible

Gets or sets a value that indicates whether a read-only text box displays a caret.

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

Python:

```python
textBox.IsReadOnlyCaretVisible: bool
```

### Returns

`bool` — 

### Examples

C#:

```csharp
var textBox = new TextBox { Text = "Read only, caret visible", IsReadOnly = true, IsReadOnlyCaretVisible = true };
Chart.AddControl(textBox);
```

Python:

```python
textBox = TextBox()
textBox.Text = "Read only, caret visible"
textBox.IsReadOnly = True
textBox.IsReadOnlyCaretVisible = True
api.Chart.AddControl(textBox)
```

