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

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

# Window.MaxHeight

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

## MaxHeight

Get / Set the window maximum 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 MaxHeight {get; set;}
```

Python:

```python
window.MaxHeight: float
```

### Returns

`double` — 

### Examples

C#:

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

Python:

```python
window = Window()
window.Title = "Resizable"
window.Width = 300
window.Height = 250
window.MaxHeight = 600
window.Show()
api.Print(f"Maximum height: {window.MaxHeight}")
```

