ToolboxCategoryItems.IList.RemoveAt(Int32) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
拿掉位於 ToolboxCategoryItems 集合之指定索引處的工具箱類別目錄。
virtual void System.Collections.IList.RemoveAt(int index) = System::Collections::IList::RemoveAt;
void IList.RemoveAt(int index);
abstract member System.Collections.IList.RemoveAt : int -> unit
override this.System.Collections.IList.RemoveAt : int -> unit
Sub RemoveAt (index As Integer) Implements IList.RemoveAt
參數
- index
- Int32
工具箱分類項目的零基索引要移除。
實作
例外狀況
這個 index 不適用於 ToolboxCategoryItems 該收藏。
備註
ToolboxCategoryItems 實作介面 IList 。
在連續元素的集合中,例如列表,緊接被移除元素後的元素會往上移動,佔據空出的位置。 若集合被索引,移動元素的索引也會同步更新。