NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

ITrayHolderService.AddTray

Adds the given top-level window as the tray for the DocumentWindow.

[Visual Basic]
Function AddTray( _
   ByVal tray As IWin32Window, _
   ByVal fill As Boolean _
) As IServiceObjectProvider
[C#]
IServiceObjectProvider AddTray(
   IWin32Window tray,
   bool fill
);
[C++]
IServiceObjectProvider* AddTray(
   IWin32Window* tray,
   bool fill
) = 0;
[JScript]
function AddTray(
   tray : IWin32Window,
   fill : Boolean
) : IServiceObjectProvider;

Parameters

tray
The toplevel window that is the view of the tray.
fill
Determines if the window should always be filled to the tray. If true, the window's size will be adjusted to the dimensions of the tray. If false, the window's size and position will remain unchanged and the tray will provide scrollbars if the window is too large.

See Also

ITrayHolderService Interface | ITrayHolderService Members | System.WinForms.Design Namespace