TableRowCollection.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 指定之位置開始移除的項目數。

例外狀況

indexcount 小於零,或者 index 大於或等於 Count 時引發。

indexcount 未指定此集合中的有效範圍時引發。

備註

剩餘集合專案的索引可以調整以反映移除的集合專案。

適用於

另請參閱