ListView::SelectedListViewItemCollection::IList::RemoveAt Method (Int32)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

This API supports the product infrastructure and is not intended to be used directly from your code.

Removes an item from the collection at a specified index.

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

private:
virtual void RemoveAt(
	int index
) sealed = IList::RemoveAt

Parameters

index
Type: System::Int32

The zero-based index of the item to remove.

Exception Condition
NotSupportedException

Always thrown.

You cannot change the ListView::SelectedListViewItemCollection class directly. To remove an item from the ListView::SelectedListViewItemCollection, use the Selected property.

.NET Framework
Available since 1.1
Return to top
Show: