Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Cut
Run
Expand Minimize

Add Method (ToolBoxTabs Collection)

Visual Studio .NET 2003

Creates a new tab in the ToolBox and adds it to the ToolBoxTabs collection.

[Visual Basic .NET]
Public Function Add( _
   ByVal Name As String _
) As ToolBoxTab
[Visual Basic 6]
Function Add( _
   ByVal Name As String _
) As ToolBoxTab
[C++]
HRESULT __stdcall Add(
   BSTR Name,
   /* [out, retval] */ ToolBoxTab** retVal
);
[C#]
ToolBoxTab Add(
   string Name
);
[JScript .NET]
public function Add(
   Name : String
) : ToolBoxTab

Parameters

Name
Required. The name of the tab.

Return Value

Returns a ToolBoxTab object.

Example

Sub ToolBoxAddExample()
   ' This adds a tab to 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 tab to the Toolbox.
   colTbxTabs.Add("MyTab")
End Sub

See Also

Applies To: ToolBoxTabs Collection

Show:
© 2015 Microsoft