语言

TableColumnCollection.RemoveRange(Int32, Int32) 方法

定义

从集合中移除由起始索引和计数指定的项范围。

public:
 void RemoveRange(int index, int count);
public void RemoveRange(int index, int count);
member this.RemoveRange : int * int -> unit
Public Sub RemoveRange (index As Integer, count As Integer)

参数

index
Int32

从零开始的索引,指示要删除的项范围的开头。

count
Int32

要移除的项数,从指定的 index位置开始。

例外

当或index小于零或count大于或等于index时Count引发。

在此集合中指定有效范围时和index未指定时count引发。

注解

可以调整剩余集合项的索引以反映已删除的集合项。

适用于

另请参阅