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.GetBounds (Rectangle)

Retrieves the bounds of the monitor that contains the largest region of the specified rectangle.

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

Parameters

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

Return Value

A Rectangle that specifies the bounds of the monitor that contains the specified rectangle. 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.GetBounds Overload List