# populateContextMenu

> Add content to the context menu that appears when you right-click this toolbar element.

## Definition

* **Type:** Property
* **Namespace:** [UnityEditor.Toolbars](/engine/6000.6/script-reference/unityeditor/toolbars.md)
* **Assembly:** UnityEditor.CoreModule

```csharp
public Action<DropdownMenu> populateContextMenu { get; set; }
```

### Remarks

The context menu includes a menu item to hide the toolbar element by default. Use this `Action`  to add custom menu items.
