ToolBox.ActiveTab Property
Gets the currently selected item in the ToolBox.
Namespace: EnvDTE
Assembly: EnvDTE (in EnvDTE.dll)
Syntax
'Declaration
ReadOnly Property ActiveTab As ToolBoxTab
ToolBoxTab ActiveTab { get; }
property ToolBoxTab^ ActiveTab {
ToolBoxTab^ get ();
}
abstract ActiveTab : ToolBoxTab
function get ActiveTab () : ToolBoxTab
Property Value
Type: EnvDTE.ToolBoxTab
A ToolBoxTab object.
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
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.