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

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

# Window.Left

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

## Left

Get / Set window left margin (X)

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

Python:

```python
window.Left: float
```

### Returns

`double` — 

### Examples

C#:

```csharp
var window = new Window { Title = "Positioned window", Width = 250, Height = 150, Left = 100, Top = 100 };
window.Show();
Print("Left: {0}", window.Left);
```

Python:

```python
window = Window()
window.Title = "Positioned window"
window.Width = 250
window.Height = 150
window.Left = 100
window.Top = 100
window.Show()
api.Print(f"Left: {window.Left}")
```

