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

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

# ControlBase.Bottom

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

## Bottom

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

Python:

```python
controlBase.Bottom: float
```

### Returns

`double` — The bottom.

### Examples

C#:

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

Python:

```python
canvas = Canvas()
textBlock = TextBlock()
textBlock.Text = "Equity"
textBlock.Left = 20
textBlock.Bottom = 40
canvas.AddChild(textBlock)
api.Chart.AddControl(canvas)
api.Print(f"Bottom: {textBlock.Bottom}")
```

