Edit

Share via


ListView.CheckedListViewItemCollection.IList.Clear Method

Definition

Removes all items from the collection.

 virtual void System.Collections.IList.Clear() = System::Collections::IList::Clear;
void IList.Clear ();
abstract member System.Collections.IList.Clear : unit -> unit
override this.System.Collections.IList.Clear : unit -> unit
Sub Clear () Implements IList.Clear

Implements

Exceptions

Always thrown.

Remarks

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

Applies to