Condividi tramite


IVsToolbox2.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)

Syntax

'Dichiarazione
Function AddTab ( _
    lpszTab As String _
) As Integer
'Utilizzo
Dim instance As IVsToolbox2
Dim lpszTab As String
Dim returnValue As Integer

returnValue = instance.AddTab(lpszTab)
int AddTab(
    string lpszTab
)
int AddTab(
    [InAttribute] String^ lpszTab
)
abstract AddTab : 
        lpszTab:string -> int 
function AddTab(
    lpszTab : String
) : int

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.

Implements

IVsToolbox.AddTab(String)

Remarks

COM Signature

From vsshell.idl:

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

Nota

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

.NET Framework Security

See Also

Reference

IVsToolbox2 Interface

IVsToolbox2 Members

AddTab Overload

Microsoft.VisualStudio.Shell.Interop Namespace