ToolBoxTabs Interface

 

Contains all tabs in the Toolbox.

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

[GuidAttribute("CF177B52-4F2F-42A0-8DA3-CE78679A0D2D")]
public interface ToolBoxTabs : IEnumerable

NameDescription
System_CAPS_pubpropertyCount

Gets a value indicating the number of objects in the collection.

System_CAPS_pubpropertyDTE

Gets the top-level extensibility object.

System_CAPS_pubpropertyParent

Gets the immediate parent object of a ToolBoxTabs collection.

NameDescription
System_CAPS_pubmethodAdd(String)

Creates a new tab in the ToolBox and adds it to the ToolBoxTabs collection.

System_CAPS_pubmethodGetEnumerator()

Gets an enumerator for items in the collection.

System_CAPS_pubmethodItem(Object)

Returns 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
Return to top
Show: