Export (0) Print
Expand All
Expand Minimize

Overview | Methods | This Package | All Packages

Visual Studio 6.0
OverviewMethodsThis PackageAll Packages

ComboBox.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.

Return Value

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

Exceptions

WFCInvalidArgumentException thrown if the specified index is not valid.

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

Show:
© 2014 Microsoft