This documentation is archived and is not being maintained.

IVsToolbox2.AddTab Method

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 (
	[InAttribute] string lpszTab
)
int AddTab (
	/** @attribute InAttribute() */ String lpszTab
)
function AddTab (
	lpszTab : String
) : int

Parameters

lpszTab

[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

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

COM Signature

From vsshell.idl:

HRESULT IVsToolbox2::AddTab(
   [in]LPCOLESTR lpszTab
);
NoteNote

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

Show: