Screen.FromControl(Control) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
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
参数
返回
一个 Screen 显示,其中包含指定控件的最大区域。 在没有显示控件的多个显示环境中,将返回离指定控件最近的显示。