DataGridViewCellCollection.IList.Remove(Object) 方法

定义

从集合中移除特定对象的第一个匹配项。

 virtual void System.Collections.IList.Remove(System::Object ^ value) = System::Collections::IList::Remove;
void IList.Remove (object value);
abstract member System.Collections.IList.Remove : obj -> unit
override this.System.Collections.IList.Remove : obj -> unit
Sub Remove (value As Object) Implements IList.Remove

参数

value
Object

要从该集合中移除的 DataGridViewCell

实现

例外

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

未能在该集合中找到 cell

注解

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

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

适用于

另请参阅