Export (0) Print
Expand All

IVsToolbox.EnumItems Method

Enumerates items on a given tab in the Toolbox, or all items in the Toolbox.

Namespace: Microsoft.VisualStudio.Shell.Interop
Assembly: Microsoft.VisualStudio.Shell.Interop (in microsoft.visualstudio.shell.interop.dll)

'Declaration
Function EnumItems ( _
	<InAttribute> lpszTab As String, _
	<OutAttribute> ByRef pEnum As IEnumToolboxItems _
) As Integer
'Usage
Dim instance As IVsToolbox
Dim lpszTab As String
Dim pEnum As IEnumToolboxItems
Dim returnValue As Integer

returnValue = instance.EnumItems(lpszTab, pEnum)
int EnumItems (
	/** @attribute InAttribute() */ String lpszTab, 
	/** @attribute OutAttribute() */ /** @ref */ IEnumToolboxItems pEnum
)
JScript does not support passing value-type arguments by reference.

Parameters

lpszTab

[in] Toolbox tab to enumerate items on. This value can be a null reference (Nothing in Visual Basic).

pEnum

[out] Pointer to the IEnumToolboxItems interface, which is used to enumerate Toolbox items.

Return Value

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

COM Signature

From vsshell.idl:

HRESULT IVsToolbox::EnumItems(
   [in]LPCOLESTR lpszTab,
   [out]IEnumToolboxItems** pEnum
);

If you do not specify a Toolbox tab for the lpszTab parameter, then this method enumerates through all items in the Toolbox.

Community Additions

ADD
Show:
© 2015 Microsoft