---
id: "T:cAlgo.API.MainMenuOwnCustomItem"
kind: "interface"
namespace: "cAlgo.API"
url: "https://help.ctrader.com/ctrader-algo/references/Plugin/MainMenu/MainMenuOwnCustomItem/"
---

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

# MainMenuOwnCustomItem (interface)

Represents a custom item in main menu which is owned / added by plugin.

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.

## Definition

```csharp
public interface MainMenuOwnCustomItem
```

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>");
MainMenuOwnCustomItem item = MainMenu.AddItem("My Item", icon);
var webView = new WebView();
webView.Loaded += _ => webView.NavigateAsync("https://help.ctrader.com/");
item.Child = webView;
MainMenu.TryChangeSelectedItem(item);
```

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)
webView = WebView()
webView.Loaded += lambda _: webView.NavigateAsync("https://help.ctrader.com/")
item.Child = webView
api.MainMenu.TryChangeSelectedItem(item)
```

## Properties

- `ControlBase Child {get; set;}` — Get / set content of item. [details](https://help.ctrader.com/ctrader-algo/references/Plugin/MainMenu/MainMenuOwnCustomItem/Child/index.md)

## Inherited members

- `string Name {get;}` (from MainMenuCustomItem) [details](https://help.ctrader.com/ctrader-algo/references/Plugin/MainMenu/MainMenuCustomItem/Name/index.md)

