Udostępnij za pośrednictwem


IVsToolbox2.AddTabEx(String, VSTBXTABVIEW) Method

Definition

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

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

Parameters

lpszTab
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(String, String).

tv
VSTBXTABVIEW

[in] Determines whether the Toolbox tab is shown 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::AddTabEx(  
   [in]LPCOLESTR lpszTab,  
   [in]VSTBXTABVIEW tv  
);  

Applies to