BindingList<T>.RemoveItem(Int32) 方法

定义

删除指定索引处的项。Removes the item at the specified index.

protected:
 override void RemoveItem(int index);
protected override void RemoveItem (int index);
override this.RemoveItem : int -> unit
Protected Overrides Sub RemoveItem (index As Integer)

参数

index
Int32

要删除的项的从零开始的索引。The zero-based index of the item to remove.

异常

您正在移除一个新添加的项而 AllowRemove 设置为 falseYou are removing a newly added item and AllowRemove is set to false.

注解

此方法引发 ItemDeleted类型的 ListChanged 事件。This method raises the ListChanged event of type ItemDeleted.

适用于

另请参阅