IVsToolbarTrayHost::GetToolbarTray Method (IVsUIElement^)
Visual Studio 2015
Returns the UI element that represents the toolbar tray.
Assembly: Microsoft.VisualStudio.Shell.Interop.10.0 (in Microsoft.VisualStudio.Shell.Interop.10.0.dll)
Parameters
- ppToolbarTray
-
Type:
Microsoft.VisualStudio.Shell.Interop::IVsUIElement^
[out] The UI element.
Return Value
Type: System::Int32If the method succeeds, it returns S_OK. If it fails, it returns an error code.
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.
Show: