DataGridViewColumnCollection.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

要从该集合中移除的 Object。 该值可以为 null

实现

例外

value 不在集合中。

valuenull

关联的 DataGridView 控件正在执行以下操作之一,该操作暂时禁止添加新列:

注解

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

适用于

另请参阅