Compartilhar via


IVsToolbox.AddTabEx Method

Adds a new tab to the Toolbox and specifies how the tabs are viewed.

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

Syntax

'Declaration
Function AddTabEx ( _
    lpszTab As String, _
    tv As VSTBXTABVIEW _
) As Integer
int AddTabEx(
    string lpszTab,
    VSTBXTABVIEW tv
)
int AddTabEx(
    [InAttribute] String^ lpszTab, 
    [InAttribute] VSTBXTABVIEW tv
)
abstract AddTabEx : 
        lpszTab:string * 
        tv:VSTBXTABVIEW -> int
function AddTabEx(
    lpszTab : String, 
    tv : VSTBXTABVIEW
) : int

Parameters

  • lpszTab
    Type: 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: Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

COM Signature

From vsshell.idl:

HRESULT IVsToolbox::AddTabEx(
   [in]LPCOLESTR lpszTab,
   [in]VSTBXTABVIEW tv
);

.NET Framework Security

See Also

Reference

IVsToolbox Interface

Microsoft.VisualStudio.Shell.Interop Namespace