Removes the specified menu item.
public MenuItem remove( int index )
public void remove( MenuItem item )
index
The zero-based index of the menu item to remove.
item
A MenuItem object that specifies the item to remove.
Returns a MenuItem object that specifies the item that was removed.
When a menu item is removed, all items following the removed item are moved up one position.