语言

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插入到集合中。

实现

例外

value 是 null。

集合是只读的,或者具有已超出的固定大小。

注解

ToolboxCategoryItems IList实现接口。

如果 index 等于其中 IList项数,则将 value 追加到末尾。

在连续元素(如列表)的集合中,插入点后面的元素向下移动以适应新元素。 如果为集合编制索引,则移动的元素的索引也会更新。

适用于