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

定義

將工具插入 ToolboxCategory 之指定的索引。

 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

要加入至集合中的工具。

實作

例外狀況

index 對於 ToolboxCategory 集合無效。

valuenull

ToolboxCategory 是唯讀的,或者它具有已經超過的固定大小。

備註

ToolboxCategory 會實作 IList 介面。

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

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

適用於