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

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

# ControlBase.Left

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

## Left

Gets or sets the position of the chart control to the left side of the chart area. Works only when the control is inside the Canvas panel.

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

- CLI: Accepted without error but never displayed, so control events such as Click are never raised.
- Cloud: Accepted without error but never displayed, so control events such as Click are never raised.

C#:

```csharp
public double Left {get; set;}
```

Python:

```python
controlBase.Left: float
```

### Returns

`double` — The left.

### Examples

C#:

```csharp
var canvas = new Canvas();
var textBlock = new TextBlock { Text = "EURUSD", Left = 20, Top = 30 };
canvas.AddChild(textBlock);
Chart.AddControl(canvas);
Print("Left: {0}", textBlock.Left);
```

Python:

```python
canvas = Canvas()
textBlock = TextBlock()
textBlock.Text = "EURUSD"
textBlock.Left = 20
textBlock.Top = 30
canvas.AddChild(textBlock)
api.Chart.AddControl(canvas)
api.Print(f"Left: {textBlock.Left}")
```

