語言

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 該收藏。

value 是 null。

該集合為唯讀或具有固定大小且已超過。

備註

ToolboxCategoryItems 實作介面 IList 。

若 index 等於 中項目數 IList,則 value 會附加在末尾。

在連續元素的集合中,例如列表,插入點後的元素會向下移動以容納新元素。 若集合被索引,移動元素的索引也會同步更新。

適用於