# MenuItemCollection class

Namespace: [Eto.Forms](https://eto.picoe.ca/api/namespace/eto.forms.md) · Assembly: [Eto](https://eto.picoe.ca/api/assembly/eto.md)

```cs
public class MenuItemCollection : Collection<MenuItem>, IList
```

Collection for menu items.

## Methods

- [Add](https://eto.picoe.ca/api/type/eto.forms.menuitemcollection/add.md): (2 overloads) Add the specified command with the specified order.
- [AddRange](https://eto.picoe.ca/api/type/eto.forms.menuitemcollection/addrange.md): (2 overloads) Adds the specified commands to the collection starting at the specified order.
- [AddSeparator](https://eto.picoe.ca/api/type/eto.forms.menuitemcollection/addseparator.md): Adds the separator with the specified order.
- [ClearItems](https://eto.picoe.ca/api/type/eto.forms.menuitemcollection/clearitems.md): Clears the items.
- [GetSubmenu](https://eto.picoe.ca/api/type/eto.forms.menuitemcollection/getsubmenu.md): Gets the submenu from the collection with the specified text, optionally creating one if not found.
- [InsertItem](https://eto.picoe.ca/api/type/eto.forms.menuitemcollection/insertitem.md): Inserts an menu item at the specified index
- [RemoveItem](https://eto.picoe.ca/api/type/eto.forms.menuitemcollection/removeitem.md): Removes the item at the specified index.
- [IList.Add](https://eto.picoe.ca/api/type/eto.forms.menuitemcollection/system-collections-ilist-add.md)
- [Trim](https://eto.picoe.ca/api/type/eto.forms.menuitemcollection/trim.md): Trims the items in this collection and all submenus.
