ListView.SelectedIndexCollection.IList.Clear Method ()

 

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

Removes all items from the collection.

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

void IList.Clear()

Implements

IList.Clear()

Exception Condition
NotSupportedException

Always thrown.

You cannot change the ListView.SelectedIndexCollection class directly. To clear the ListView.SelectedIndexCollection, set the Selected property to false for each ListViewItem in the ListView.ListViewItemCollection.

.NET Framework
Available since 1.1
Return to top
Show: