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입니다. 어떠한 디스플레이에도 해당 컨트롤이 포함되어 있지 않은 여러 디스플레이 환경에서는 지정된 컨트롤에 가장 가까운 디스플레이가 반환됩니다.

적용 대상