TableColumnCollection.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指定位置開始,需移除的項目數量。
例外狀況
當 index 或 count 小於零時 index ,或當 大於或等於 Count時,升高 。
在 Raised index when 與 count 未指定此集合中的有效範圍。
備註
剩餘收藏項目的索引可能會調整以反映已移除的收藏項目。