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

Retrieves a Screen for the monitor that contains the largest region of the rectangle.

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

Parameters

rect
A Rectangle that specifies the area for which to retrieve the monitor.

Return Value

A Screen for the monitor that contains the largest region of the specified rectangle. If no monitor contains the rectangle, then the monitor closest to the rectangle is returned.

See Also

Screen Class | Screen Members | System.WinForms Namespace | FromControl | FromHandle | FromPoint