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

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

# Window.MinWidth

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

## MinWidth

Get / Set the window minimum width

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

Python:

```python
window.MinWidth: float
```

### Returns

`double` — 

### Examples

C#:

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

Python:

```python
window = Window()
window.Title = "Resizable"
window.Width = 300
window.Height = 250
window.MinWidth = 200
window.Show()
api.Print(f"Minimum width: {window.MinWidth}")
```

