insert


Description:

public void insert (ContextMenuItem item, int position)

Inserts item into the this at the given position.

If position is negative, or is larger than the number of items in the ContextMenu, the item is added on to the end of the this. The first position is 0.

Parameters:

this

a ContextMenu

item

the ContextMenuItem to add

position

the position to insert the item