---
id: "P:cAlgo.API.ChartStaticText.VerticalAlignment"
kind: "property"
type: "T:cAlgo.API.ChartStaticText"
url: "https://help.ctrader.com/ctrader-algo/references/Chart/Drawings/ChartStaticText/VerticalAlignment/"
---

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

# ChartStaticText.VerticalAlignment

Member of [ChartStaticText](https://help.ctrader.com/ctrader-algo/references/Chart/Drawings/ChartStaticText/index.md).

## VerticalAlignment

Gets or sets the chart static text vertical alignment.

Environments: Desktop supported · CLI works differently · Cloud works differently.

- CLI: Created and kept with all its properties, but never drawn: the CLI displays no chart.
- Cloud: Created and kept with all its properties, but never drawn: the cloud displays no chart.

C#:

```csharp
VerticalAlignment VerticalAlignment {get; set;}
```

Python:

```python
chartStaticText.VerticalAlignment: VerticalAlignment
```

### Returns

`VerticalAlignment` — 

### Examples

C#:

```csharp
var text = Chart.DrawStaticText("info", SymbolName, VerticalAlignment.Top, HorizontalAlignment.Right, Color.White);
text.VerticalAlignment = VerticalAlignment.Bottom;
Print("Static text vertical alignment: {0}", text.VerticalAlignment);
```

Python:

```python
text = api.Chart.DrawStaticText("info", api.SymbolName, VerticalAlignment.Top, HorizontalAlignment.Right, Color.White)
text.VerticalAlignment = VerticalAlignment.Bottom
api.Print(f"Static text vertical alignment: {text.VerticalAlignment}")
```

