指定したコントロールの最大領域を保持するディスプレイの範囲を取得します。
Overloads Public Shared Function GetBounds( _
ByVal ctl As Control _) As Rectangle
[C#]
public static Rectangle GetBounds(Controlctl);
[C++]
public: static Rectangle GetBounds(Control* ctl);
[JScript]
public static function GetBounds(
ctl : Control) : Rectangle;
パラメータ
- ctl
ディスプレイの範囲の取得条件となる Control 。
戻り値
指定したコントロールを保持するディスプレイの範囲を指定する Rectangle 。指定したコントロールを含むディスプレイがない複数ディスプレイ環境では、そのコントロールに最も近いディスプレイが返されます。
必要条件
プラットフォーム: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 ファミリ
参照
Screen クラス | Screen メンバ | System.Windows.Forms 名前空間 | Screen.GetBounds オーバーロードの一覧