Editar

Compartilhar via


ListView.SelectedIndexCollection.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.SelectedIndexCollection class directly. To clear the ListView.SelectedIndexCollection, set the Selected property to false for each ListViewItem in the ListView.ListViewItemCollection.

Applies to