IVsAddToolboxItems::AddItem Method (IDataObject^, array<TBXITEMINFO>^, String^, String^)

 

Adds an item to the toolbox.

Namespace:   Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop.10.0 (in Microsoft.VisualStudio.Shell.Interop.10.0.dll)

int AddItem(
	IDataObject^ pDO,
	array<TBXITEMINFO>^ ptif,
	String^ szItemID,
	String^ lpszTab
)

Parameters

pDO
Type: Microsoft.VisualStudio.OLE.Interop::IDataObject^

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

ptif
Type: array<Microsoft.VisualStudio.Shell.Interop::TBXITEMINFO>^

[in] A TBXITEMINFO structure identifying item characteristics, such as the item name and icon.

szItemID
Type: System::String^

[in] The item ID string.

lpszTab
Type: System::String^

[[in] The localized name of the tab to which to add the item. The localized name can be obtained from the invariant non-localized name by calling GetIDOfTab.

Return Value

Type: System::Int32

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

Return to top
Show: