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

The IVsAddToolboxItems type exposes the following members.

Public methodAddItemAdds an item to the toolbox.
Public methodAddItemWithOwningPackageAdds 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 IIVsProvideTargetedToolboxItems to allow the item provider to add new content. The signatures of// its methods match those of AddItem(IDataObject, TBXITEMINFO[], String) and AddItem2(IDataObject, TBXITEMINFO[], String, Guid) (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(String, String) and GetTabOfID(String, String) 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.

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

© 2015 Microsoft