語言

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時,升高 。

在 Raised index when 與 count 未指定此集合中的有效範圍。

備註

剩餘收藏項目的索引可能會調整以反映已移除的收藏項目。

適用於

另請參閱