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

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

# ControlBase.Right

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

## Right

Gets or sets the position of the chart control to the rignt 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 Right {get; set;}
```

Python:

```python
controlBase.Right: float
```

### Returns

`double` — The right.

### Examples

C#:

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

Python:

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

