IVsToolbox.AddItem Method (IDataObject, TBXITEMINFO[], String)
Visual Studio 2015
Adds a data object to the specified tab in the Toolbox.
Assembly: Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)
Parameters
- pDO
-
Type:
Microsoft.VisualStudio.OLE.Interop.IDataObject
[in] IDataObject to be added to the References tab in the Toolbox.
- ptif
-
Type:
Microsoft.VisualStudio.Shell.Interop.TBXITEMINFO[]
[in] Structure identifying item characteristics, such as the item name and icon. For more information, see TBXITEMINFO.
- lpszTab
-
Type:
System.String
[in] The localized name of the Toolbox tab to add the data object to. The localized name can be obtained from the invariant non-localized name by calling GetIDOfTab
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::AddItem( [in]IDataObject* pDO, [in]PTBXITEMINFO ptif, [in]LPCOLESTR lpszTab );
Show: