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

Control の取得条件となる Screen

戻り値

指定したコントロールの最大領域を保持するディスプレイを表す Screen。 コントロールを保持するディスプレイがない複数ディスプレイ環境では、指定したコントロールに最も近いディスプレイが返されます。

適用対象