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

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

# Control.VerticalContentAlignment

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

## VerticalContentAlignment

Gets or sets the vertical content alignment.

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

Python:

```python
control.VerticalContentAlignment: VerticalAlignment
```

### Returns

`VerticalAlignment` — 

### Examples

C#:

```csharp
var button = new Button { Text = "Buy", Height = 60, VerticalContentAlignment = VerticalAlignment.Bottom };
Chart.AddControl(button);
```

Python:

```python
button = Button()
button.Text = "Buy"
button.Height = 60
button.VerticalContentAlignment = VerticalAlignment.Bottom
api.Chart.AddControl(button)
```

