Screen.FromRectangle(Rectangle) 方法

定義

取得包含矩形最大部分的顯示器的 a Screen

public:
 static System::Windows::Forms::Screen ^ FromRectangle(System::Drawing::Rectangle rect);
public static System.Windows.Forms.Screen FromRectangle(System.Drawing.Rectangle rect);
static member FromRectangle : System.Drawing.Rectangle -> System.Windows.Forms.Screen
Public Shared Function FromRectangle (rect As Rectangle) As Screen

參數

rect
Rectangle

A Rectangle 指定要讀取顯示器的區域。

傳回

A Screen 表示包含指定矩形最大區域的顯示器。 在多個顯示環境中,若沒有任何顯示器包含該矩形,則會回傳最接近該矩形的顯示器。

適用於

另請參閱