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

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

# MainMenuCustomItem.Name

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

## Name

Gets name 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
string Name {get;}
```

Python:

```python
mainMenuCustomItem.Name: str
```

### Returns

`string` — 

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>");
MainMenuCustomItem item = MainMenu.AddItem("My Item", icon);
Print("Custom item name: {0}", item.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>")
item = api.MainMenu.AddItem("My Item", icon)
api.Print(f"Custom item name: {item.Name}")
```

