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

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

# ControlBase.MinHeight

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

## MinHeight

Gets or sets the minimum height 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 MinHeight {get; set;}
```

Python:

```python
controlBase.MinHeight: float
```

### Returns

`double` — The minimum height.

### Examples

C#:

```csharp
var button = new Button { Text = "Sell", MinHeight = 30 };
Chart.AddControl(button);
Print("Minimum height: {0}", button.MinHeight);
```

Python:

```python
button = Button()
button.Text = "Sell"
button.MinHeight = 30
api.Chart.AddControl(button)
api.Print(f"Minimum height: {button.MinHeight}")
```

