ToolboxCategoryItems.IList.Add(Object) 方法

定义

ToolboxCategoryItems 中添加一个工具。Adds a tool to the ToolboxCategoryItems.

 virtual int System.Collections.IList.Add(System::Object ^ value) = System::Collections::IList::Add;
int IList.Add (object value);
Function Add (value As Object) As Integer Implements IList.Add

参数

value
Object

新元素的插入位置。The position into which the new element is inserted.

返回

要添加到集合中的工具的从零开始的索引。The zero-based index of the tool added to the collection.

实现

异常

value 的类型不能分配给由集合实现的 IListThe value is of a type that is not assignable to the IList implemented by the collection.

注解

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

适用于