Partilhar via


IVsAddToolboxItems Interface

Definition

Adds items to the toolbox.

public interface class IVsAddToolboxItems
public interface class IVsAddToolboxItems
__interface IVsAddToolboxItems
public interface IVsAddToolboxItems
[System.Runtime.InteropServices.Guid("C1A29AC2-8FEC-407A-8650-41E05F5E87F7")]
[System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)]
public interface IVsAddToolboxItems
type IVsAddToolboxItems = interface
[<System.Runtime.InteropServices.Guid("C1A29AC2-8FEC-407A-8650-41E05F5E87F7")>]
[<System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)>]
type IVsAddToolboxItems = interface
Public Interface IVsAddToolboxItems
Attributes

Remarks

This interface is implemented by the Visual Studio shell. An instance of this interface is passed to methods of <xref: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.

Methods

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

Adds an item to the toolbox.

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

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

Applies to