Screen.FromControl(Control) 方法

定義

取得包含最大控制部分的顯示的 a Screen

public:
 static System::Windows::Forms::Screen ^ FromControl(System::Windows::Forms::Control ^ control);
public static System.Windows.Forms.Screen FromControl(System.Windows.Forms.Control control);
static member FromControl : System.Windows.Forms.Control -> System.Windows.Forms.Screen
Public Shared Function FromControl (control As Control) As Screen

參數

control
Control

Control A 用來取回一個 Screen

傳回

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

適用於