Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Represents a tab in the ToolBox, along with any objects the tab contains.
Namespace:  EnvDTE
Assembly:  EnvDTE (in EnvDTE.dll)
Syntax
'Declaration
<GuidAttribute("CE2DEF9E-3387-4BF2-967B-A1F7F70DF325")> _
Public Interface ToolBoxTab
[GuidAttribute("CE2DEF9E-3387-4BF2-967B-A1F7F70DF325")]
public interface ToolBoxTab
[GuidAttribute(L"CE2DEF9E-3387-4BF2-967B-A1F7F70DF325")]
public interface class ToolBoxTab
[<GuidAttribute("CE2DEF9E-3387-4BF2-967B-A1F7F70DF325")>]
type ToolBoxTab =  interface end
public interface ToolBoxTab
The ToolBoxTab type exposes the following members.
Properties
| Name | Description | |
|---|---|---|
| .gif) | Collection | Gets the collection containing the ToolBoxTab object supporting this property. | 
| .gif) | DTE | Gets the top-level extensibility object. | 
| .gif) | ListView | Gets or sets a value indicating whether items in a particular ToolBox tab display in List view or Icon view format. | 
| .gif) | Name | Gets or sets the name of the object. | 
| .gif) | ToolBoxItems | Gets the collection of ToolBoxItems associated with a ToolBoxTab. | 
Top
Methods
| Name | Description | |
|---|---|---|
| .gif) | Activate | Moves the focus to the current item. | 
| .gif) | Delete | Removes the ToolBoxTab from a collection. | 
Top
Examples
Sub ToolBoxTabExample()
    Dim tlBox As ToolBox
    Dim tbxTabs As ToolBoxTabs
    Dim tbxTab As ToolBoxTab
    Dim tbxItem As ToolBoxItem
    Try
        ' 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)
        tbxTab.Activate()
        tbxItem = tbxTab.ToolBoxItems.Item(4)
        MsgBox("ToolBox item name: " & tbxItem.Name)
    Catch ex As System.Exception
        MsgBox("ERROR: " & ex.Message)
    End Try
End Sub