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