Compartir a través de


ToolBoxItems.Item(Object) Method

Definition

Returns a ToolBoxItem object in a ToolBoxItems collection.

public:
 EnvDTE::ToolBoxItem ^ Item(System::Object ^ index);
public:
 EnvDTE::ToolBoxItem ^ Item(Platform::Object ^ index);
EnvDTE::ToolBoxItem Item(winrt::Windows::Foundation::IInspectable const & index);
[System.Runtime.InteropServices.DispId(0)]
public EnvDTE.ToolBoxItem Item (object index);
[<System.Runtime.InteropServices.DispId(0)>]
abstract member Item : obj -> EnvDTE.ToolBoxItem
Public Function Item (index As Object) As ToolBoxItem

Parameters

index
Object

Required. The index of the ToolBoxItem object to return.

Returns

A ToolBoxItem object.

Attributes

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.

Applies to