TableRowCollection.RemoveRange(Int32, Int32) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
從集合中移除以起始索引和計數指定的項目範圍。
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指定位置開始,需移除的項目數量。
例外狀況
當 指數 或 計數 小於零,或當 指數 大於等於時 Count,會提高。
當 索引 與 計數 未指定此集合有效範圍時,該資料被提出。
備註
剩餘收藏項目的索引可能會調整以反映已移除的收藏項目。