Sdílet prostřednictvím


IVsToolbox2 Interface

Definition

Used to manage the Toolbox.

public interface class IVsToolbox2 : Microsoft::VisualStudio::Shell::Interop::IVsToolbox
public interface class IVsToolbox2 : Microsoft::VisualStudio::Shell::Interop::IVsToolbox
__interface IVsToolbox2 : Microsoft::VisualStudio::Shell::Interop::IVsToolbox
[System.Runtime.InteropServices.Guid("08E728DC-9C45-4060-A243-B73443B7CA16")]
[System.Runtime.InteropServices.InterfaceType(1)]
public interface IVsToolbox2 : Microsoft.VisualStudio.Shell.Interop.IVsToolbox
[System.Runtime.InteropServices.Guid("08E728DC-9C45-4060-A243-B73443B7CA16")]
[System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)]
public interface IVsToolbox2 : Microsoft.VisualStudio.Shell.Interop.IVsToolbox
[<System.Runtime.InteropServices.Guid("08E728DC-9C45-4060-A243-B73443B7CA16")>]
[<System.Runtime.InteropServices.InterfaceType(1)>]
type IVsToolbox2 = interface
    interface IVsToolbox
[<System.Runtime.InteropServices.Guid("08E728DC-9C45-4060-A243-B73443B7CA16")>]
[<System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)>]
type IVsToolbox2 = interface
    interface IVsToolbox
Public Interface IVsToolbox2
Implements IVsToolbox
Attributes
Implements

Remarks

See illustrations of the implementation and/or calling of this interface in the Figures Edit.

Additional features, useful in persisting toolboxes, can be found under the IVsToolbox3 interface.

Notes to Callers

Called by editors, projects, and other objects that want to manipulate the shared Toolbox user interface.

Methods

AddActiveXItem(Guid, String, IVsHierarchy)

Allows ActiveX controls to be programmatically added to the Toolbox.

AddActiveXItem2(Guid, String, IVsHierarchy, Guid)

Adds an ActiveX item to the Toolbox.

AddItem(IDataObject, TBXITEMINFO[], String)

Adds a data object to the specified tab in the Toolbox.

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

Adds an item to the referenced Toolbox tab, specifying a package GUID.

AddItemFromFile(String, IVsHierarchy, Int32)

Allows files to be programmatically added to the Toolbox.

AddItemFromFile2(String, IVsHierarchy, Guid, Int32)

Adds an item to the Toolbox from a file, specifying a package GUID.

AddTab(String)

Adds a new tab to the Toolbox.

AddTab2(String, Guid)

Adds a tab to the Toolbox, specifying the tab view.

AddTabEx(String, VSTBXTABVIEW)

Adds a new tab to the Toolbox and specifies how the tabs are viewed.

AddTabEx2(String, VSTBXTABVIEW, Guid)

Adds a tab to the Toolbox, specifying a tab view and a package GUID.

DataUsed()

Called by a designer to inform the Toolbox that the item has been pasted onto the form.

EnumItems(String, IEnumToolboxItems)

Enumerates items on a given tab in the Toolbox, or all items in the Toolbox.

EnumTabs(IEnumToolboxTabs)

Enumerates through tabs in the Toolbox.

GetData(IDataObject)

Returns the data object for the selected item in the Toolbox.

GetFrame(IVsWindowFrame)

Returns the window frame for the Toolbox.

GetTab(String)

Returns the name of the selected tab.

GetTabView(String, VSTBXTABVIEW[])

Returns the tab view for the specified tab.

IsCurrentUser(IVsToolboxUser, Int32)

Determines whether the specified Toolbox user is the current user.

RegisterDataProvider(IVsToolboxDataProvider, UInt32)

Registers a Toolbox data provider.

RemoveItem(IDataObject)

Removes an item from the Toolbox.

RemoveTab(String)

Removes a tab from the Toolbox.

SelectItem(IDataObject)

Programmatically selects an item.

SelectTab(String)

Programmatically selects the referenced Toolbox tab.

SetCursor()

Sets the drop cursor for the current, enabled Toolbox item.

SetItemInfo(IDataObject, TBXITEMINFO[])

Sets information for the referenced item.

SetTabView(String, VSTBXTABVIEW)

Sets the type of view for the specified tab.

UnregisterDataProvider(UInt32)

Unregisters the specified data provider.

UpdateToolboxUI()

Forces a redraw of the Toolbox UI.

Applies to