IVsToolbox.EnumItems(String, IEnumToolboxItems) IVsToolbox.EnumItems(String, IEnumToolboxItems) IVsToolbox.EnumItems(String, IEnumToolboxItems) Method

Definition

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

public int EnumItems (string lpszTab, out Microsoft.VisualStudio.Shell.Interop.IEnumToolboxItems pEnum);
abstract member EnumItems : string *  -> int
Public Function EnumItems (lpszTab As String, ByRef pEnum As IEnumToolboxItems) As Integer
Parameters
lpszTab
String String String

[in] Toolbox tab to enumerate items on. This value can be null.

pEnum
IEnumToolboxItems IEnumToolboxItems IEnumToolboxItems

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

Returns

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

Remarks

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.

Applies to