ListBox.SelectedIndexCollection.IList.RemoveAt(Int32) 方法

定義

如需這個成員的說明,請參閱 RemoveAt(Int32)

 virtual void System.Collections.IList.RemoveAt(int index) = System::Collections::IList::RemoveAt;
void IList.RemoveAt (int index);
abstract member System.Collections.IList.RemoveAt : int -> unit
override this.System.Collections.IList.RemoveAt : int -> unit
Sub RemoveAt (index As Integer) Implements IList.RemoveAt

參數

index
Int32

要移除之項目的以零為起始的索引。

實作

例外狀況

一律擲回。

備註

這個成員是明確介面成員實作, 只有在 ListBox.SelectedIndexCollection 執行個體轉換成 IList 介面時,才能使用這個成員。

您無法直接變更 ListBox.SelectedIndexCollection 類別。 若要從 ListBox.SelectedIndexCollection 移除專案,請使用 SelectedIndex 屬性或 SetSelected 方法。

適用於

另請參閱