This documentation is archived and is not being maintained.

ToolBoxItems.Item Method

Returns a ToolBoxItem object in a ToolBoxItems collection.

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

ToolBoxItem Item(
	Object index


Type: System.Object
Required. The index of the ToolBoxItem object to return.

Return Value

Type: EnvDTE.ToolBoxItem
A ToolBoxItem object.

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.