DataGridViewSelectedRowCollection.IList.RemoveAt(Int32) 方法

定义

实现 RemoveAt(Int32) 方法。 总是引发 NotSupportedException

 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

要移除的项的从零开始的索引。

实现

例外

始终引发。

注解

不能直接更改 DataGridViewSelectedRowCollection 类。 若要从中删除 DataGridViewSelectedRowCollection行,请使用该 DataGridViewBand.Selected 属性。

此成员是显式接口成员的实现。 它只能在 DataGridViewSelectedRowCollection 实例被强制转换为 IList 接口时使用。

适用于

另请参阅