DataGridViewSelectedColumnCollection.IList.RemoveAt(Int32) 方法

定义

实现 RemoveAt(Int32) 方法。Implements the RemoveAt(Int32) method. 总是引发 NotSupportedExceptionAlways throws NotSupportedException.

 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.

注解

不能直接更改DataGridViewSelectedColumnCollection类。You cannot change the DataGridViewSelectedColumnCollection class directly. 若要从中DataGridViewSelectedColumnCollection删除列, 请DataGridViewBand.Selected使用属性。To remove a column from the DataGridViewSelectedColumnCollection, use the DataGridViewBand.Selected property.

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

适用于

另请参阅