ListView.SelectedIndexCollection.IList.Clear 方法

定義

移除集合的所有項目。

 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

實作

例外狀況

一律擲回。

備註

您無法直接變更 ListView.SelectedIndexCollection 類別。 若要清除 ListView.SelectedIndexCollection ,請將 Selected 中的每個 ListViewItem ListView.ListViewItemCollection 屬性 false 設定為 。

適用於