ListBox.removeItem

Overview | Methods | Fields | This Package | All Packages

ListBox.removeItem

Removes the specified item from the list box.

Syntax

public final void removeItem( int index )

public final int removeItem( Object value )

Parameters

index

The zero-based index of the item to remove.

value

The item to remove.

Exceptions

WFCInvalidArgumentException thrown if the specified index is not valid.

Return Value

The second syntax returns the zero-based index of the removed item; if the item is not found in the list, returns -1.

Remarks

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