Partilhar via


Interface ToolBoxTab

Representa uma guia no Caixa de Ferramentas, juntamente com quaisquer objetos que a guia contém.

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

Sintaxe

<GuidAttribute("CE2DEF9E-3387-4BF2-967B-A1F7F70DF325")> _
Public Interface ToolBoxTab

Dim instance As ToolBoxTab
[GuidAttribute("CE2DEF9E-3387-4BF2-967B-A1F7F70DF325")]
public interface ToolBoxTab
[GuidAttribute(L"CE2DEF9E-3387-4BF2-967B-A1F7F70DF325")]
public interface class ToolBoxTab
public interface ToolBoxTab

Exemplos

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

Consulte também

Referência

ToolBoxTab Membros

Espaço para nome EnvDTE