# ContextMenu Collection Editor

Learn how you can create menus for the row header, column header, or viewport area with the ContextMenu Collection Editor of Spread Designer.

## Content



You can use the **ContextMenu Collection Editor** to create menus for the row header, column header, or viewport area. You can also create menu items and set menu properties. From the **Properties** window, select **ContextMenus** to see this editor.

![ContextMenu Collection Editor](https://cdn.mescius.io/document-site-files/images/346c9178-0ed8-4fb9-908b-1565b22fb408/artwork/contextmenueditor.png)

Use the **Add** button to add the type of menu (row header, column header, or viewport).

You can use the **MenuItem Collection Editor** to add menu items after you add a menu type.

![MenuItem Collection Editor](https://cdn.mescius.io/document-site-files/images/346c9178-0ed8-4fb9-908b-1565b22fb408/artwork/menuitemcoll.png)

After you add a menu item, you can specify menu properties such as visible or add submenu items with the **ChildItems** collection. The **CommandArgument** and **CommandName** properties are used to separate which menu item is clicked in code. The **ImageUrl** property is a small image displayed to the left of the menu item. **Text** is the title of the menu item.

![MenuItem Collection Editor](https://cdn.mescius.io/document-site-files/images/346c9178-0ed8-4fb9-908b-1565b22fb408/artwork/menuitemadd.png)

## See Also

[Adding a Context Menu](/spreadnet/docs/latest/online-asp/overview/spweb-devguide/spweb-interaction/spweb-interact-control/spweb-contextmenu)