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

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

# MainMenuBottomItem (interface)

Represents a bottom item in main menu.

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 MainMenuBottomItem
```

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>");
MainMenuBottomItem bottomItem = MainMenu.AddBottomItem("My Action", icon);
if (bottomItem is MainMenuBottomCustomItem customBottomItem)
    Print("Bottom item name: {0}", customBottomItem.Name);
```

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>")
bottomItem = api.MainMenu.AddBottomItem("My Action", icon)
api.Print(f"Bottom item name: {bottomItem.Name}")
```

