Partager via


IVsToolbox2.SetTabView Method (String, VSTBXTABVIEW)

Sets the type of view for the specified tab.

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

Syntax

'Déclaration
Function SetTabView ( _
    lpszTab As String, _
    tv As VSTBXTABVIEW _
) As Integer
'Utilisation
Dim instance As IVsToolbox2
Dim lpszTab As String
Dim tv As VSTBXTABVIEW
Dim returnValue As Integer

returnValue = instance.SetTabView(lpszTab, _
    tv)
int SetTabView(
    string lpszTab,
    VSTBXTABVIEW tv
)
int SetTabView(
    [InAttribute] String^ lpszTab, 
    [InAttribute] VSTBXTABVIEW tv
)
abstract SetTabView : 
        lpszTab:string * 
        tv:VSTBXTABVIEW -> int 
function SetTabView(
    lpszTab : String, 
    tv : VSTBXTABVIEW
) : int

Parameters

  • lpszTab
    Type: System.String
    [in] Toolbox tab to set the view for.

Return Value

Type: System.Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Implements

IVsToolbox.SetTabView(String, VSTBXTABVIEW)

Remarks

COM Signature

From vsshell.idl:

HRESULT IVsToolbox2::SetTabView(
   [in]LPCOLESTR lpszTab,
   [in]VSTBXTABVIEW tv
);

.NET Framework Security

See Also

Reference

IVsToolbox2 Interface

IVsToolbox2 Members

SetTabView Overload

Microsoft.VisualStudio.Shell.Interop Namespace