ListView::CheckedIndexCollection::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)

private:
virtual void Clear() sealed = IList::Clear

Implements

IList::Clear()

Exception Condition
NotSupportedException

Always thrown.

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

.NET Framework
Available since 1.1
Return to top
Show: