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

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

# DetachedWindow.Width

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

## Width

Get / Set width of the window

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

Python:

```python
detachedWindow.Width: float
```

### Returns

`double` — 

### Examples

C#:

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

Python:

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

