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

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

# TextBlock.LineHeight

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

## LineHeight

Gets or sets the height of the line.

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

Python:

```python
textBlock.LineHeight: float
```

### Returns

`double` — 

### Examples

C#:

```csharp
var textBlock = new TextBlock { Text = "Line 1\nLine 2\nLine 3", LineHeight = 24 };
Chart.AddControl(textBlock);
Print("Line height: {0}", textBlock.LineHeight);
```

Python:

```python
textBlock = TextBlock()
textBlock.Text = "Line 1\nLine 2\nLine 3"
textBlock.LineHeight = 24
api.Chart.AddControl(textBlock)
api.Print(f"Line height: {textBlock.LineHeight}")
```

