move_item


Description:

public void move_item (ContextMenuItem item, int position)

Moves item to the given position in the this.

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 new position to move the item