Partager via


IVsToolbox2.SetTabView(String, VSTBXTABVIEW) Method

Definition

Sets the type of view for the specified tab.

public:
 int SetTabView(System::String ^ lpszTab, Microsoft::VisualStudio::Shell::Interop::VSTBXTABVIEW tv);
public:
 int SetTabView(Platform::String ^ lpszTab, Microsoft::VisualStudio::Shell::Interop::VSTBXTABVIEW tv);
int SetTabView(std::wstring const & lpszTab, Microsoft::VisualStudio::Shell::Interop::VSTBXTABVIEW tv);
public int SetTabView (string lpszTab, Microsoft.VisualStudio.Shell.Interop.VSTBXTABVIEW tv);
abstract member SetTabView : string * Microsoft.VisualStudio.Shell.Interop.VSTBXTABVIEW -> int
Public Function SetTabView (lpszTab As String, tv As VSTBXTABVIEW) As Integer

Parameters

lpszTab
String

[in] Toolbox tab to set the view for.

tv
VSTBXTABVIEW

[in] Determines whether the tab is in list view or icon view. For a list of tv values, see VSTBXTABVIEW.

Returns

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

Implements

Remarks

COM Signature

From vsshell.idl:

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

Applies to