Share via


IVsToolbarTrayHost.GetToolbarTray(IVsUIElement) Method

Definition

Returns the UI element that represents the toolbar tray.

public:
 int GetToolbarTray([Runtime::InteropServices::Out] Microsoft::VisualStudio::Shell::Interop::IVsUIElement ^ % ppToolbarTray);
public:
 int GetToolbarTray([Runtime::InteropServices::Out] Microsoft::VisualStudio::Shell::Interop::IVsUIElement ^ &  ppToolbarTray);
int GetToolbarTray([Runtime::InteropServices::Out] Microsoft::VisualStudio::Shell::Interop::IVsUIElement const & & ppToolbarTray);
public int GetToolbarTray (out Microsoft.VisualStudio.Shell.Interop.IVsUIElement ppToolbarTray);
abstract member GetToolbarTray : IVsUIElement -> int
Public Function GetToolbarTray (ByRef ppToolbarTray As IVsUIElement) As Integer

Parameters

ppToolbarTray
IVsUIElement

[out] The UI element.

Returns

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

Remarks

After getting the UI element, you can then place it on their window as you like. You are responsible for the layout of this UI element.

Applies to