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

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

# DetachedWindow.MinWidth

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

## MinWidth

Get / Set the window minimum width

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

Python:

```python
detachedWindow.MinWidth: float
```

### Returns

`double` — 

### Examples

C#:

```csharp
var block = Asp.SymbolTab.AddBlock("Signals");
block.DetachedWindow.MinWidth = 250;
Print("Detached window minimum width: {0}", block.DetachedWindow.MinWidth);
```

Python:

```python
block = api.Asp.SymbolTab.AddBlock("Signals")
block.DetachedWindow.MinWidth = 250
api.Print(f"Detached window minimum width: {block.DetachedWindow.MinWidth}")
```

