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

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

# DetachedWindow.WindowStartupLocation

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

## WindowStartupLocation

Get / Set the window startup location

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

Python:

```python
detachedWindow.WindowStartupLocation: WindowStartupLocation
```

### Returns

`WindowStartupLocation` — 

### Examples

C#:

```csharp
var block = Asp.SymbolTab.AddBlock("Signals");
block.DetachedWindow.WindowStartupLocation = WindowStartupLocation.CenterOwner;
Print("Detached window startup location: {0}", block.DetachedWindow.WindowStartupLocation);
```

Python:

```python
block = api.Asp.SymbolTab.AddBlock("Signals")
block.DetachedWindow.WindowStartupLocation = WindowStartupLocation.CenterOwner
api.Print(f"Detached window startup location: {block.DetachedWindow.WindowStartupLocation}")
```

