IVsToolbox.EnumItems Method (String, IEnumToolboxItems)
Visual Studio 2015
Enumerates items on a given tab in the Toolbox, or all items in the Toolbox.
Assembly: Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)
Parameters
- lpszTab
-
Type:
System.String
[in] Toolbox tab to enumerate items on. This value can be null.
- pEnum
-
Type:
Microsoft.VisualStudio.Shell.Interop.IEnumToolboxItems
[out] Pointer to the IEnumToolboxItems interface, which is used to enumerate Toolbox items.
Return Value
Type: System.Int32If the method succeeds, it returns S_OK. If it fails, it returns an error code.
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.
Show: