We recommend using Visual Studio 2017
This documentation is archived and is not being maintained.

ToolBoxTabs Interface

Contains all tabs in the Toolbox.

Namespace:  EnvDTE
Assembly:  EnvDTE (in EnvDTE.dll)

public interface ToolBoxTabs : IEnumerable

The ToolBoxTabs type exposes the following members.

Public propertyCountGets a value indicating the number of objects in the collection.
Public propertyDTEGets the top-level extensibility object.
Public propertyParentGets the immediate parent object of a ToolBoxTabs collection.

Public methodAddCreates a new tab in the ToolBox and adds it to the ToolBoxTabs collection.
Public methodGetEnumeratorGets an enumerator for items in the collection.
Public methodItemReturns an indexed member of a ToolBoxTabs collection.

Sub ToolBoxTabsExample()
    ' 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