IVsAddToolboxItems Interface


Adds items to the toolbox.

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

public interface IVsAddToolboxItems

System_CAPS_pubmethodAddItem(IDataObject, TBXITEMINFO[], String, String)

Adds an item to the toolbox.

System_CAPS_pubmethodAddItemWithOwningPackage(IDataObject, TBXITEMINFO[], String, String, Guid)

Adds an item to the toolbox with a reference to an owning package.

This interface is implemented by the Visual Studio shell. An instance of this interface is passed to methods of T:Microsoft.VisualStudio.Shell.Interop.IIVsProvideTargetedToolboxItems to allow the item provider to add new content. The signatures of its methods match those of AddItem and AddItem2 (except for the addition of the item ID parameter) to facilitate migration of existing toolbox population code. For both methods, lpszTab is the localized name of the tab (use GetIDOfTab and GetTabOfID to translate between localized and non-localized tab names). If the given tab does not exist, it will be created before adding the item. All parameters except the data object and the package GUID are marked as unique because there are scenarios in which we want to allow callers to pass NULL.

Return to top