IVsToolbarTrayHost.GetToolbarTray Method

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)

Syntax

'Declaration
Function GetToolbarTray ( _
    <OutAttribute> ByRef ppToolbarTray As IVsUIElement _
) As Integer
int GetToolbarTray(
    out IVsUIElement ppToolbarTray
)
int GetToolbarTray(
    [OutAttribute] IVsUIElement^% ppToolbarTray
)
abstract GetToolbarTray : 
        ppToolbarTray:IVsUIElement byref -> int 
function GetToolbarTray(
    ppToolbarTray : IVsUIElement
) : int

Parameters

Return Value

Type: System.Int32
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.

.NET Framework Security

See Also

Reference

IVsToolbarTrayHost Interface

Microsoft.VisualStudio.Shell.Interop Namespace