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

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

# MainMenuOwnCustomItem.Child

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

## Child

Get / set content of item.

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
mainMenuOwnCustomItem.Child: ControlBase
```

### Returns

`ControlBase` — 

Available since cAlgo.API 5.4.

### Examples

C#:

```csharp
var icon = new SvgIcon("<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><circle cx='8' cy='8' r='6' fill='#2F4BFF' /></svg>");
var item = MainMenu.AddItem("My Item", icon);
var panel = new StackPanel();
panel.AddChild(new TextBlock { Text = "Plugin page content" });
item.Child = panel;
```

Python:

```python
icon = SvgIcon("<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><circle cx='8' cy='8' r='6' fill='#2F4BFF' /></svg>")
item = api.MainMenu.AddItem("My Item", icon)
panel = StackPanel()
textBlock = TextBlock()
textBlock.Text = "Plugin page content"
panel.AddChild(textBlock)
item.Child = panel
```

