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

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

# Window.Width

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

## Width

Get / Set width of the window

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

Python:

```python
window.Width: float
```

### Returns

`double` — 

### Examples

C#:

```csharp
var window = new Window { Title = "Wide window", Width = 600, Height = 200 };
window.Show();
Print("Width: {0}", window.Width);
```

Python:

```python
window = Window()
window.Title = "Wide window"
window.Width = 600
window.Height = 200
window.Show()
api.Print(f"Width: {window.Width}")
```

