DataGridViewCellCollection.IList.RemoveAt(Int32) 方法

定义

删除指定索引处的 DataGridViewCell

 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

要移除 DataGridViewCell 的位置。

实现

例外

拥有此 DataGridViewCellCollection 的行已经属于某个 DataGridView 控件。

注解

将行添加到控件后,它包含的单元格数始终与控件中的列数匹配,因此此方法不再有用。

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

适用于

另请参阅