ToolBoxTab Interface
TOC
Collapse the table of content
Expand the table of content
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here. ArchiveDisclaimer

ToolBoxTab Interface

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

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

[GuidAttribute("CE2DEF9E-3387-4BF2-967B-A1F7F70DF325")] 
public interface ToolBoxTab
/** @attribute GuidAttribute("CE2DEF9E-3387-4BF2-967B-A1F7F70DF325") */ 
public interface ToolBoxTab
GuidAttribute("CE2DEF9E-3387-4BF2-967B-A1F7F70DF325") 
public interface ToolBoxTab

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
Show:
© 2016 Microsoft