語言

Screen.GetBounds 方法

定義

取得顯示範圍。

多載

名稱 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

參數

ctl
Control

為了 Control 取得顯示界限。

傳回

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

參數

pt
Point

A Point 指定要取得顯示邊界的座標。

傳回

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

參數

rect
Rectangle

Rectangle A 指定要檢索顯示邊界的區域。

傳回

Rectangle A 指定包含指定矩形的顯示器邊界。 在多個顯示環境中,若沒有任何螢幕包含指定的矩形,則會回傳最接近該矩形的螢幕。

適用於