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

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

# ControlBase.Height

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

## Height

Gets or sets the hight of the chart control.

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

Python:

```python
controlBase.Height: float
```

### Returns

`double` — The height.

### Examples

C#:

```csharp
var border = new Border { BackgroundColor = Color.DarkSlateGray, Width = 200, Height = 80 };
Chart.AddControl(border);
Print("Height: {0}", border.Height);
```

Python:

```python
border = Border()
border.BackgroundColor = Color.DarkSlateGray
border.Width = 200
border.Height = 80
api.Chart.AddControl(border)
api.Print(f"Height: {border.Height}")
```

