Removes the specified item from the list box.
public final void removeItem( int index )
public final int removeItem( Object value )
index
The zero-based index of the item to remove.
value
The item to remove.
The second syntax returns the zero-based index of the removed item; returns -1 if the item is not found in the list.
WFCInvalidArgumentException thrown if the specified index is not valid.
When you remove an item from the list, the indices change for subsequent items in the list. All information about the deleted item is lost.
See Also addItem