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

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

# CustomFrame.Child

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

## Child

Get / set child control of frame.

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

- CLI: Available to plugins only, and plugins cannot run in the CLI.
- Cloud: Available to plugins only, and plugins cannot run in the cloud.

C#:

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

Python:

```python
customFrame.Child: ControlBase
```

### Returns

`ControlBase` — 

### Examples

C#:

```csharp
var customFrame = ChartManager.AddCustomFrame("Account");
var panel = new StackPanel { Margin = 10 };
panel.AddChild(new TextBlock { Text = $"Balance: {Account.Balance}" });
panel.AddChild(new TextBlock { Text = $"Equity: {Account.Equity}" });
customFrame.Child = panel;
```

Python:

```python
customFrame = api.ChartManager.AddCustomFrame("Account")
panel = StackPanel()
panel.Margin = Thickness(10)
balanceText = TextBlock()
balanceText.Text = f"Balance: {api.Account.Balance}"
equityText = TextBlock()
equityText.Text = f"Equity: {api.Account.Equity}"
panel.AddChild(balanceText)
panel.AddChild(equityText)
customFrame.Child = panel
```

