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 (Control)

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

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

Parameters

ctl
The Control for which to retrieve the monitor bounds.

Return Value

A Rectangle that specifies the bounds of the monitor that contains the specified control. If no monitor contains the specified control, the monitor closest to the control is returned.

See Also

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