ToolBoxTab Interface
Collapse the table of content
Expand the table of content

ToolBoxTab Interface

Represents a tab in the ToolBox, along with any objects the tab contains.

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

public interface ToolBoxTab

The ToolBoxTab type exposes the following members.

Public propertyCollectionGets the collection containing the ToolBoxTab object supporting this property.
Public propertyDTEGets the top-level extensibility object.
Public propertyListViewGets or sets a value indicating whether items in a particular ToolBox tab display in List view or Icon view format.
Public propertyNameGets or sets the name of the object.
Public propertyToolBoxItemsGets the collection of ToolBoxItems associated with a ToolBoxTab.

Public methodActivateMoves the focus to the current item.
Public methodDeleteRemoves the ToolBoxTab from a collection.

Sub ToolBoxTabExample()
    Dim tlBox As ToolBox
    Dim tbxTabs As ToolBoxTabs
    Dim tbxTab As ToolBoxTab
    Dim tbxItem As ToolBoxItem

        ' Create an object reference to the IDE's ToolBox object and
        ' its tabs.
        tlBox = DTE.Windows.Item(Constants.vsWindowKindToolbox).Object
        tbxTabs = tlBox.ToolBoxTabs

        ' Select the first ToolBox tab.
        tbxTab = tbxTabs.Item(1)
        tbxItem = tbxTab.ToolBoxItems.Item(4)
        MsgBox("ToolBox item name: " & tbxItem.Name)

    Catch ex As System.Exception
        MsgBox("ERROR: " & ex.Message)
    End Try
End Sub
© 2016 Microsoft