IVsToolbarTrayHost.GetToolbarTray(IVsUIElement) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.