ToolBoxItems.Item 方法

更新:2007 年 11 月

返回 ToolBoxItems 集合中的一个 ToolBoxItem 对象。

命名空间:  EnvDTE
程序集:  EnvDTE(在 EnvDTE.dll 中)

语法

声明
Function Item ( _
    index As Object _
) As ToolBoxItem
用法
Dim instance As ToolBoxItems
Dim index As Object
Dim returnValue As ToolBoxItem

returnValue = instance(index)
ToolBoxItem Item(
    Object index
)
ToolBoxItem^ Item(
    Object^ index
)
function Item(
    index : Object
) : ToolBoxItem

参数

返回值

类型:EnvDTE.ToolBoxItem

ToolBoxItem 对象。

备注

传递给 Index 的值可以是一个整数,表示某个 ToolBoxItem 对象在其 ToolBoxItems 集合中的索引;也可以是该集合中某个 ToolBoxItem 对象的名称。

如果集合找不到对应于索引值的对象,则 Item 方法引发 ArgumentException 异常。

权限

另请参见

参考

ToolBoxItems 接口

ToolBoxItems 成员

EnvDTE 命名空间

其他资源

如何:控制工具箱