ToolboxCategoryItems.IList.Insert(Int32, Object) 方法

定義

將工具箱分類插入 ToolboxCategoryItems 集合中的指定索引處。

 virtual void System.Collections.IList.Insert(int index, System::Object ^ value) = System::Collections::IList::Insert;
void IList.Insert (int index, object value);
abstract member System.Collections.IList.Insert : int * obj -> unit
override this.System.Collections.IList.Insert : int * obj -> unit
Sub Insert (index As Integer, value As Object) Implements IList.Insert

參數

index
Int32

應在 value 插入以零為起始的索引。

value
Object

插入集合中的 Object

實作

例外狀況

index 對於 ToolboxCategoryItems 集合無效。

valuenull

已超過的集合是唯讀的或具有固定大小。

備註

ToolboxCategoryItems 會實作 IList 介面。

如果 index 等於 IList 中的項目數目,則會將 value 附加至結尾。

在連續項目的集合 (例如清單) 中,後面接著插入點的項目會向下移動以容納新項目。 如果集合具有索引,則移動之項目的索引也會更新。

適用於