ListBox.IntegerCollection.RemoveAt Method (Int32)

 

Removes the integer at the specified index from the ListBox.IntegerCollection.

Namespace:   System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

public void RemoveAt(
	int index
)

Parameters

index
Type: System.Int32

The zero-based index of the integer to remove.

When you remove an integer from the ListBox.IntegerCollection, the indexes change for subsequent integers in the collection. All information about the removed integer is deleted. You can use the RemoveAt method to remove a specific integer from the list by specifying the index of the integer to remove from the list. To specify the item to remove instead of the index to the item, use the Remove method.

.NET Framework
Available since 2.0
Return to top
Show: