ListView.SelectedIndexCollection.IList.Remove Method (Object)


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

Removes the first occurrence of a specified item from the collection.

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

void IList.Remove(
	object value


Type: System.Object

The object to remove from the ListView.SelectedIndexCollection.

Exception Condition

Always thrown.

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

.NET Framework
Available since 1.1
Return to top