IEditableCollectionView.RemoveAt(Int32) 方法

定义

从集合中移除位于指定位置的项。

public:
 void RemoveAt(int index);
public void RemoveAt(int index);
abstract member RemoveAt : int -> unit
Public Sub RemoveAt (index As Integer)

参数

index
Int32

要移除的项的位置。

例外

index 小于 0 或大于集合视图中的项数。

注解

index 相对于集合视图,而不是集合。 例如,如果集合有 10 个项,并且视图具有 Filter 7 个项,则有效值为 index 0 到 6。

适用于