ToolboxCategory.IList.Add(Object) 方法

定義

將工具加入至 ToolboxCategoryAdds a tool to the ToolboxCategory.

 virtual int System.Collections.IList.Add(System::Object ^ value) = System::Collections::IList::Add;
int IList.Add (object value);
abstract member System.Collections.IList.Add : obj -> int
override this.System.Collections.IList.Add : obj -> int
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 是無法指派給集合所實作之 IList 的型別。The value is of a type that is not assignable to the IList implemented by the collection.

備註

ToolboxCategory 會實作 IList 介面。ToolboxCategory implements the IList interface.

適用於