IVsToolbox::AddTab Method (String^)

 

Adds a new tab to the Toolbox.

Namespace:   Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)

int AddTab(
	String^ lpszTab
)

Parameters

lpszTab
Type: System::String^

[in] The localized name of the tab to add to the Toolbox. The localized name can be obtained from the invariant non-localized name by calling GetIDOfTab.

Return Value

Type: System::Int32

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

From vsshell.idl:

HRESULT IVsToolbox::AddTab(
   [in]LPCOLESTR lpszTab
);
System_CAPS_noteNote

If you specify the name of a tab that has already been added, then this method returns E_FAIL.

Return to top
Show: