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
ppToolbarTray
Type: Microsoft.VisualStudio.Shell.Interop.IVsUIElement%[out] The UI element.
Return Value
Type: 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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.