Partager via


ToolBox Interface

Definition

Represents the ToolBox in the integrated development environment (IDE).

public interface class ToolBox
public interface class ToolBox
__interface ToolBox
[System.Runtime.InteropServices.Guid("56FCD5AF-7F17-4C5C-AA8D-AE2BB2DDBF38")]
[System.Runtime.InteropServices.TypeLibType(4160)]
public interface ToolBox
[System.Runtime.InteropServices.Guid("56FCD5AF-7F17-4C5C-AA8D-AE2BB2DDBF38")]
public interface ToolBox
[<System.Runtime.InteropServices.Guid("56FCD5AF-7F17-4C5C-AA8D-AE2BB2DDBF38")>]
[<System.Runtime.InteropServices.TypeLibType(4160)>]
type ToolBox = interface
[<System.Runtime.InteropServices.Guid("56FCD5AF-7F17-4C5C-AA8D-AE2BB2DDBF38")>]
type ToolBox = interface
Public Interface ToolBox
Attributes

Examples

Sub ToolboxExample()  
    ' Define the variables and create an object reference to the IDE's    
    ' ToolBox object.  
    Dim win As Window = DTE.Windows.Item(Constants.vsWindowKindToolbox)  
    Dim tlBox As ToolBox = win.Object  
    Dim tbxTabs As ToolBoxTabs  

    ' Create an object reference to the ToolBoxTabs object.  
    tbxTabs = tlBox.ToolBoxTabs  

    ' Now you can manipulate the ToolBox.  
    ' List the total number of tabs in the ToolBox.  
    MsgBox("Number of ToolBox tabs: " & tbxTabs.Count)  
End Sub  

Remarks

A Window object represents the ToolBox's window. The ToolBox contains a collection of ToolBoxTab objects, such as controls. Individual items in the ToolBox tabs are represented by ToolBoxItem objects.

A special tab named Clipboard contains the last 15 items cut or copied to the clipboard.

There is only one ToolBox object in the IDE.

Properties

ActiveTab

Gets the currently selected item in the ToolBox.

DTE

Gets the top-level extensibility object.

Parent

Gets the immediate parent object of a ToolBox object.

ToolBoxTabs

Gets the collection of all tabs in the ToolBox.

Applies to