IVsAddToolboxItems Interface
Adds items to the toolbox.
Namespace: Microsoft.VisualStudio.Shell.Interop
Assemblies: Microsoft.VisualStudio (in Microsoft.VisualStudio.dll)
Microsoft.VisualStudio.Shell.Interop.10.0 (in Microsoft.VisualStudio.Shell.Interop.10.0.dll)
Syntax
'Declaration
<InterfaceTypeAttribute(ComInterfaceType.InterfaceIsIUnknown)> _
<GuidAttribute("C1A29AC2-8FEC-407A-8650-41E05F5E87F7")> _
Public Interface IVsAddToolboxItems
[InterfaceTypeAttribute(ComInterfaceType.InterfaceIsIUnknown)]
[GuidAttribute("C1A29AC2-8FEC-407A-8650-41E05F5E87F7")]
public interface IVsAddToolboxItems
[InterfaceTypeAttribute(ComInterfaceType::InterfaceIsIUnknown)]
[GuidAttribute(L"C1A29AC2-8FEC-407A-8650-41E05F5E87F7")]
public interface class IVsAddToolboxItems
[<InterfaceTypeAttribute(ComInterfaceType.InterfaceIsIUnknown)>]
[<GuidAttribute("C1A29AC2-8FEC-407A-8650-41E05F5E87F7")>]
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 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.