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

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

# Window.WindowStartupLocation

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

## WindowStartupLocation

Get / Set the window startup location

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

Python:

```python
window.WindowStartupLocation: WindowStartupLocation
```

### Returns

`WindowStartupLocation` — 

### Examples

C#:

```csharp
var window = new Window { Title = "Centered on chart", Width = 300, Height = 200, WindowStartupLocation = WindowStartupLocation.CenterOwner };
window.Show();
```

Python:

```python
window = Window()
window.Title = "Centered on chart"
window.Width = 300
window.Height = 200
window.WindowStartupLocation = WindowStartupLocation.CenterOwner
window.Show()
```

