IVsToolbarTrayHost::GetToolbarTray Method (IVsUIElement^)

 

Returns the UI element that represents the toolbar tray.

Namespace:   Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop.10.0 (in Microsoft.VisualStudio.Shell.Interop.10.0.dll)

int GetToolbarTray(
	[OutAttribute] IVsUIElement^% ppToolbarTray
)

Parameters

ppToolbarTray
Type: Microsoft.VisualStudio.Shell.Interop::IVsUIElement^

[out] The UI element.

Return Value

Type: System::Int32

If 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.

Return to top
Show: