Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here.

IVsToolbox.AddItem Method

Adds a data object to the specified tab in the Toolbox.

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

int AddItem (
	[InAttribute] IDataObject^ pDO, 
	[InAttribute] array<TBXITEMINFO>^ ptif, 
	[InAttribute] String^ lpszTab
)
int AddItem (
	/** @attribute InAttribute() */ IDataObject pDO, 
	/** @attribute InAttribute() */ TBXITEMINFO[] ptif, 
	/** @attribute InAttribute() */ String lpszTab
)
function AddItem (
	pDO : IDataObject, 
	ptif : TBXITEMINFO[], 
	lpszTab : String
) : int

Parameters

pDO

[in] IDataObject to be added to the References tab in the Toolbox.

ptif

[in] Structure identifying item characteristics, such as the item name and icon. For more information, see TBXITEMINFO.

lpszTab

[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

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

COM Signature

From vsshell.idl:

HRESULT IVsToolbox::AddItem(
   [in]IDataObject* pDO,
   [in]PTBXITEMINFO ptif,
   [in]LPCOLESTR lpszTab
);

Community Additions

ADD
Show:
© 2015 Microsoft