---
id: "P:cAlgo.API.AspBlock.DetachedWindow"
kind: "property"
type: "T:cAlgo.API.AspBlock"
url: "https://help.ctrader.com/ctrader-algo/references/Plugin/Asp/AspBlock/DetachedWindow/"
---

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

# AspBlock.DetachedWindow

Member of [AspBlock](https://help.ctrader.com/ctrader-algo/references/Plugin/Asp/AspBlock/index.md).

## DetachedWindow

Returns detached window properties.

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

- CLI: Available to plugins only, and plugins cannot run in the CLI.
- Cloud: Available to plugins only, and plugins cannot run in the cloud.

C#:

```csharp
DetachedWindow DetachedWindow {get;}
```

Python:

```python
aspBlock.DetachedWindow: DetachedWindow
```

### Returns

`DetachedWindow` — 

### Examples

C#:

```csharp
var block = Asp.SymbolTab.AddBlock("My Block");
block.DetachedWindow.Width = 400;
block.DetachedWindow.Height = 350;
Print("Detached window size: {0}x{1}", block.DetachedWindow.Width, block.DetachedWindow.Height);
```

Python:

```python
block = api.Asp.SymbolTab.AddBlock("My Block")
block.DetachedWindow.Width = 400
block.DetachedWindow.Height = 350
api.Print(f"Detached window size: {block.DetachedWindow.Width}x{block.DetachedWindow.Height}")
```

