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

定义

将工具箱类别插入到 ToolboxCategoryItems 集合中的指定索引位置。Inserts a toolbox category into the ToolboxCategoryItems collection at the specified index.

 virtual void System.Collections.IList.Insert(int index, System::Object ^ value) = System::Collections::IList::Insert;
void IList.Insert (int index, object value);
Sub Insert (index As Integer, value As Object) Implements IList.Insert

参数

index
Int32

应插入 value 的从零开始的索引。The zero-based index at which value should be inserted.

value
Object

要插入到集合中的 ObjectThe Object inserted into the collection.

实现

异常

index 对于 ToolboxCategoryItems 集合无效。The index is not valid for the ToolboxCategoryItems collection.

valuenullThe value is null.

此集合是只读的,或者它具有固定的大小且已超出其大小。The collection is read-only or has a fixed size that has been exceeded.

注解

ToolboxCategoryItems 实现 IList 接口。ToolboxCategoryItems implements the IList interface.

如果 index 等于 IList 中的项数,则将 value 追加到末尾。If index equals the number of items in the IList, then value is appended to the end.

在由连续的元素组成的集合(如列表)中,插入点下面的元素将下移以容纳新的元素。In collections of contiguous elements, such as lists, the elements that follow the insertion point move down to accommodate the new element. 如果集合具有索引,则移动的元素的索引也将更新。If the collection is indexed, the indexes of the elements that are moved are also updated.

适用于