ListView.SelectedIndexCollection.IList.Clear Metoda

Definicja

Usuwa wszystkie elementy z kolekcji.

 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

Implementuje

Wyjątki

Zawsze generowany.

Uwagi

Nie można bezpośrednio zmienić ListView.SelectedIndexCollection klasy. Aby wyczyścić ListView.SelectedIndexCollectionfalse właściwość , ustaw Selected dla każdej ListViewItem właściwości w elemecie ListView.ListViewItemCollection.

Dotyczy