Screen.GetBounds メソッド

定義

ディスプレイの範囲を取得します。

オーバーロード

GetBounds(Control)

指定したコントロールの最大領域を保持するディスプレイの範囲を取得します。

GetBounds(Point)

指定したポイントを保持するディスプレイの範囲を取得します。

GetBounds(Rectangle)

指定した四角形の最大部分を保持するディスプレイの範囲を取得します。

GetBounds(Control)

指定したコントロールの最大領域を保持するディスプレイの範囲を取得します。

public:
 static System::Drawing::Rectangle GetBounds(System::Windows::Forms::Control ^ ctl);
public static System.Drawing.Rectangle GetBounds (System.Windows.Forms.Control ctl);
static member GetBounds : System.Windows.Forms.Control -> System.Drawing.Rectangle
Public Shared Function GetBounds (ctl As Control) As Rectangle

パラメーター

ctl
Control

ディスプレイの範囲の取得条件となる Control

戻り値

指定したコントロールを保持するディスプレイの範囲を指定する Rectangle。 指定したコントロールを含むディスプレイがない複数ディスプレイ環境では、そのコントロールに最も近いディスプレイが返されます。

適用対象

GetBounds(Point)

指定したポイントを保持するディスプレイの範囲を取得します。

public:
 static System::Drawing::Rectangle GetBounds(System::Drawing::Point pt);
public static System.Drawing.Rectangle GetBounds (System.Drawing.Point pt);
static member GetBounds : System.Drawing.Point -> System.Drawing.Rectangle
Public Shared Function GetBounds (pt As Point) As Rectangle

パラメーター

pt
Point

ディスプレイの範囲の取得条件となる座標を指定する Point

戻り値

指定したポイントを保持するディスプレイの範囲を指定する Rectangle。 指定したポイントを保持するディスプレイがない複数ディスプレイ環境では、そのポイントに最も近いディスプレイが返されます。

適用対象

GetBounds(Rectangle)

指定した四角形の最大部分を保持するディスプレイの範囲を取得します。

public:
 static System::Drawing::Rectangle GetBounds(System::Drawing::Rectangle rect);
public static System.Drawing.Rectangle GetBounds (System.Drawing.Rectangle rect);
static member GetBounds : System.Drawing.Rectangle -> System.Drawing.Rectangle
Public Shared Function GetBounds (rect As Rectangle) As Rectangle

パラメーター

rect
Rectangle

ディスプレイの範囲の取得条件となる領域を指定する Rectangle

戻り値

指定した四角形を保持するディスプレイの範囲を指定する Rectangle。 指定した四角形を保持するディスプレイを持たないマルチ ディスプレイ環境の場合、その四角形に最も近いディスプレイが返されます。

適用対象