Freigeben über


ToolBox.ActiveTab Property

Definition

Gets the currently selected item in the ToolBox.

public:
 property EnvDTE::ToolBoxTab ^ ActiveTab { EnvDTE::ToolBoxTab ^ get(); };
public:
 property EnvDTE::ToolBoxTab ^ ActiveTab { EnvDTE::ToolBoxTab ^ get(); };
[System.Runtime.InteropServices.DispId(3)]
public EnvDTE.ToolBoxTab ActiveTab { [System.Runtime.InteropServices.DispId(3)] get; }
[<System.Runtime.InteropServices.DispId(3)>]
[<get: System.Runtime.InteropServices.DispId(3)>]
member this.ActiveTab : EnvDTE.ToolBoxTab
Public ReadOnly Property ActiveTab As ToolBoxTab

Property Value

A ToolBoxTab object.

Attributes

Examples

Sub ActiveTabExample()  
    ' This activates a specific tab in the Toolbox.  
    ' 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  

    If tlBox.ActiveTab.Name <> "MyTab" Then  
        ' Activate the second tab in the Toolbox.  
        tbxTabs.Item(2).Activate()  
    End If  
End Sub  

Applies to