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!

Screen.GetWorkingArea (Rectangle)

Retrieves the working area for the monitor that contains the largest region of the specified rectangle.

[Visual Basic]
Overloads Public Shared Function GetWorkingArea( _
   ByVal rect As Rectangle _
) As Rectangle
[C#]
public static Rectangle GetWorkingArea(
   Rectangle rect
);
[C++]
public: static Rectangle GetWorkingArea(
   Rectangle rect
);
[JScript]
public static function GetWorkingArea(
   rect : Rectangle
) : Rectangle;

Parameters

rect
The Rectangle that specifies the area for which to retrieve the working area. The Control for which to retrieve the working area.

Return Value

A Rectangle that specifies the working area for the appropriate monitor. If no monitor contains the specified rectangle, the monitor closest to the rectangle is returned.

See Also

Screen Class | Screen Members | System.WinForms Namespace | Screen.GetWorkingArea Overload List