ListView.CheckedIndexCollection.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.CheckedIndexCollection 類別。 若要清除 ListView.CheckedIndexCollection ,請將 Checked 中的每個 ListViewItemListView.ListViewItemCollection 屬性 false 設定為 。

適用於