Screen.GetBounds メソッド

定義

ディスプレイの境界を取得します。

オーバーロード

名前 説明
GetBounds(Control)

指定したコントロールの最大部分を含むディスプレイの境界を取得します。

GetBounds(Point)

指定したポイントを含むディスプレイの境界を取得します。

GetBounds(Rectangle)

指定した四角形の最も大きい部分を含むディスプレイの境界を取得します。

GetBounds(Control)

ソース:
Screen.cs
ソース:
Screen.cs
ソース:
Screen.cs
ソース:
Screen.cs
ソース:
Screen.cs

指定したコントロールの最大部分を含むディスプレイの境界を取得します。

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)

ソース:
Screen.cs
ソース:
Screen.cs
ソース:
Screen.cs
ソース:
Screen.cs
ソース:
Screen.cs

指定したポイントを含むディスプレイの境界を取得します。

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)

ソース:
Screen.cs
ソース:
Screen.cs
ソース:
Screen.cs
ソース:
Screen.cs
ソース:
Screen.cs

指定した四角形の最も大きい部分を含むディスプレイの境界を取得します。

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 。 指定した四角形を含むモニターがない複数の表示環境では、四角形に最も近いモニターが返されます。

適用対象