Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Collapse the table of content
Expand the table of content

ToolBoxTabs Property

Visual Studio .NET 2003

Returns the collection of all tabs in the ToolBox.

[Visual Basic .NET]
Public ReadOnly Property ToolBoxTabs() As ToolBoxTabs
[Visual Basic 6]
Property Get ToolBoxTabs() As ToolBoxTabs
HRESULT __stdcall get_ToolBoxTabs(
   /* [out, retval] */ ToolBoxTabs** retVal
public ToolBoxTabs ToolBoxTabs {get;}
[JScript .NET]
public function get ToolBoxTabs() : ToolBoxTabs

Return Value

Returns a ToolBoxTabs collection.


Sub ToolBoxTabsExample()
   ' This adds a Text item to the first tab of 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 objToolbox As ToolBox = win.Object
   Dim colTbxTabs As ToolBoxTabs

   ' Create an object reference to the ToolBoxTabs object.
   colTbxTabs = objToolbox.ToolBoxTabs

   ' Add a new Text item to the first tab in the Toolbox.
   colTbxTabs.Item(1).ToolBoxItems.Add("New Text Item", "Some text to add to the document.", vsToolBoxItemFormat.vsToolBoxItemFormatText)
End Sub

See Also

ToolBoxTab Object

Applies To: ToolBox Object

© 2015 Microsoft