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

定义

有关此成员的说明,请参见 RemoveAt(Int32)For a description of this member, see RemoveAt(Int32).

 virtual void System.Collections.IList.RemoveAt(int index) = System::Collections::IList::RemoveAt;
void IList.RemoveAt (int index);
Sub RemoveAt (index As Integer) Implements IList.RemoveAt

参数

index
Int32

要移除的项的从零开始的索引。The zero-based index of the item to remove.

实现

异常

始终引发。Always thrown.

注解

此成员是显式接口成员的实现。This member is an explicit interface member implementation. 它只能在 ListBox.SelectedIndexCollection 实例被强制转换为 IList 接口时使用。It can be used only when the ListBox.SelectedIndexCollection instance is cast to an IList interface.

不能直接更改 ListBox.SelectedIndexCollection 类。You cannot change the ListBox.SelectedIndexCollection class directly. 若要从 @no__t 中删除项,请使用 @no__t 属性或 SetSelected 方法。To remove an item from the ListBox.SelectedIndexCollection, use the SelectedIndex property or the SetSelected method.

适用于

另请参阅