Menu.remove

Overview | Methods | This Package | All Packages

Menu.remove

Removes the specified menu item.

Syntax

public MenuItem remove( int index )

public void remove( MenuItem item )

Parameters

index

The zero-based index of the menu item to remove.

item

A MenuItem object that specifies the item to remove.

Return Value

Returns a MenuItem object that specifies the item that was removed.

Remarks

When a menu item is removed, all items following the removed item are moved up one position.

See Also   add, clear, insert