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