---
id: "P:cAlgo.API.ChartDraggable.Child"
kind: "property"
type: "T:cAlgo.API.ChartDraggable"
url: "https://help.ctrader.com/ctrader-algo/references/Chart/Draggables/ChartDraggable/Child/"
---

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

# ChartDraggable.Child

Member of [ChartDraggable](https://help.ctrader.com/ctrader-algo/references/Chart/Draggables/ChartDraggable/index.md).

## Child

Get / set the content control inside the draggable.

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

- CLI: Never displayed: starts at X=0, Y=0; property changes are kept locally only and LocationChanged never fires.
- Cloud: Never displayed: starts at X=0, Y=0; property changes are kept locally only and LocationChanged never fires.

C#:

```csharp
ControlBase Child {get; set;}
```

Python:

```python
chartDraggable.Child: ControlBase
```

### Returns

`ControlBase` — 

Available since cAlgo.API 5.2.

### Examples

C#:

```csharp
var button = new Button { Text = "Buy", BackgroundColor = Color.Green };
button.Click += _ => ExecuteMarketOrder(TradeType.Buy, SymbolName, Symbol.VolumeInUnitsMin);
var draggable = Chart.Draggables.Add();
draggable.Child = button;
Print("Draggable child: {0}", draggable.Child);
```

Python:

```python
button = Button()
button.Text = "Buy"
button.BackgroundColor = Color.Green
button.Click += lambda _: api.ExecuteMarketOrder(TradeType.Buy, api.SymbolName, api.Symbol.VolumeInUnitsMin)
draggable = api.Chart.Draggables.Add()
draggable.Child = button
api.Print(f"Draggable child: {draggable.Child}")
```

