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

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

# Panel.Children

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

## Children

Gets panel children.

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 IEnumerable<ControlBase> Children {get;}
```

Python:

```python
panel.Children: Iterable[ControlBase]
```

### Returns

`IEnumerable<ControlBase>` — 

Available since cAlgo.API 5.4.

### Examples

C#:

```csharp
var panel = new StackPanel();
panel.AddChild(new Button { Text = "Buy" });
panel.AddChild(new Button { Text = "Sell" });
foreach (var child in panel.Children.OfType<Button>())
    child.IsEnabled = false;
Chart.AddControl(panel);
```

Python:

```python
panel = StackPanel()
for text in ["Buy", "Sell"]:
    button = Button()
    button.Text = text
    panel.AddChild(button)
for child in panel.Children:
    child.IsEnabled = False
api.Chart.AddControl(panel)
```

