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

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

# Window.MinHeight

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

## MinHeight

Get / Set the window minimum height

Environments: Desktop supported · CLI not supported · Cloud not supported.

- CLI: Never shown: Show, Hide and Close send nothing; IsVisible stays false and window events never fire.
- Cloud: Never shown: Show, Hide and Close send nothing; IsVisible stays false and window events never fire.

C#:

```csharp
public double MinHeight {get; set;}
```

Python:

```python
window.MinHeight: float
```

### Returns

`double` — 

### Examples

C#:

```csharp
var window = new Window { Title = "Resizable", Width = 300, Height = 250, MinHeight = 150 };
window.Show();
Print("Minimum height: {0}", window.MinHeight);
```

Python:

```python
window = Window()
window.Title = "Resizable"
window.Width = 300
window.Height = 250
window.MinHeight = 150
window.Show()
api.Print(f"Minimum height: {window.MinHeight}")
```

