---
id: "T:cAlgo.API.WindowStartupLocation"
kind: "enum"
namespace: "cAlgo.API"
url: "https://help.ctrader.com/ctrader-algo/references/Controls/Windows/WindowStartupLocation/"
---

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

# WindowStartupLocation (enum)

Types of startup locations that you can use for windows

Environments: Desktop supported · CLI supported · Cloud supported.

## Definition

```csharp
public enum WindowStartupLocation
```

## Examples

C#:

```csharp
var window = new Window { Title = "Centered", Width = 300, Height = 200, WindowStartupLocation = WindowStartupLocation.CenterScreen };
window.Show();
Print("Startup location: {0}", window.WindowStartupLocation);
```

Python:

```python
window = Window()
window.Title = "Centered"
window.Width = 300
window.Height = 200
window.WindowStartupLocation = WindowStartupLocation.CenterScreen
window.Show()
api.Print(f"Startup location: {window.WindowStartupLocation}")
```

## Values

- `WindowStartupLocation.Manual` — Default window startup location value. The startup location of a Window is set from code, or defers to the default Windows location.
- `WindowStartupLocation.CenterScreen` — Window is placed at the center of the screen.
- `WindowStartupLocation.CenterOwner` — Window is placed at the center of it is owner.

