Screen.GetBounds 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得顯示範圍。
多載
| 名稱 | Description |
|---|---|
| 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
參數
傳回
A 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
參數
傳回
Rectangle A 指定包含指定點的顯示範圍。 在多個顯示環境中,若沒有任何顯示器包含指定點,則會回傳最接近該點的顯示器。
適用於
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
參數
傳回
Rectangle A 指定包含指定矩形的顯示器邊界。 在多個顯示環境中,若沒有任何螢幕包含指定的矩形,則會回傳最接近該矩形的螢幕。