ToolBoxItems.Item Method

Returns a ToolBoxItem object in a ToolBoxItems collection.

Namespace:  EnvDTE
Assembly:  EnvDTE (in EnvDTE.dll)

Syntax

'Declaration
Function Item ( _
    index As Object _
) As ToolBoxItem
'Usage
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

Parameters

Return Value

Type: EnvDTE.ToolBoxItem
A ToolBoxItem object.

Remarks

The value passed to Index is either an integer that is an index to a ToolBoxItem object in its ToolBoxItems collection or the name of a ToolBoxItem object in the collection.

The Item method throws a ArgumentException exception if the collection cannot find the object that corresponds to the index value.

.NET Framework Security

See Also

Reference

ToolBoxItems Interface

ToolBoxItems Members

EnvDTE Namespace

Other Resources

How to: Control the Toolbox