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

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

# DetachedWindow.MaxHeight

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

## MaxHeight

Get / Set the window maximum height

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

- CLI: Values start at 0 and are only stored in the algo; no window is read or changed.
- Cloud: Values start at 0 and are only stored in the algo; no window is read or changed.

C#:

```csharp
double MaxHeight {get; set;}
```

Python:

```python
detachedWindow.MaxHeight: float
```

### Returns

`double` — 

### Examples

C#:

```csharp
var block = Asp.SymbolTab.AddBlock("Signals");
block.DetachedWindow.MaxHeight = 800;
Print("Detached window maximum height: {0}", block.DetachedWindow.MaxHeight);
```

Python:

```python
block = api.Asp.SymbolTab.AddBlock("Signals")
block.DetachedWindow.MaxHeight = 800
api.Print(f"Detached window maximum height: {block.DetachedWindow.MaxHeight}")
```

