Screen.FromControl(Control) 方法

定義

擷取顯示的 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

用來擷取 ControlScreen

傳回

顯示的 Screen,其包含指定控制項的最大區域。 在任何顯示皆不包含控制項的多重顯示環境中,會傳回離指定控制項最近的顯示。

適用於