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)
Syntax
'Declaration
<GuidAttribute("C1A29AC2-8FEC-407A-8650-41E05F5E87F7")> _
<InterfaceTypeAttribute(ComInterfaceType.InterfaceIsIUnknown)> _
Public Interface IVsAddToolboxItems
[GuidAttribute("C1A29AC2-8FEC-407A-8650-41E05F5E87F7")]
[InterfaceTypeAttribute(ComInterfaceType.InterfaceIsIUnknown)]
public interface IVsAddToolboxItems
[GuidAttribute(L"C1A29AC2-8FEC-407A-8650-41E05F5E87F7")]
[InterfaceTypeAttribute(ComInterfaceType::InterfaceIsIUnknown)]
public interface class IVsAddToolboxItems
[<GuidAttribute("C1A29AC2-8FEC-407A-8650-41E05F5E87F7")>]
[<InterfaceTypeAttribute(ComInterfaceType.InterfaceIsIUnknown)>]
type IVsAddToolboxItems = interface end
public interface IVsAddToolboxItems
The IVsAddToolboxItems type exposes the following members.
Methods
Name | Description | |
---|---|---|
AddItem | Adds an item to the toolbox. | |
AddItemWithOwningPackage | Adds an item to the toolbox with a reference to an owning package. |
Top
Remarks
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, array<TBXITEMINFO[], String) and AddItem2(IDataObject, array<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.