Control.TopLevelControl 속성
정의
public:
property System::Windows::Forms::Control ^ TopLevelControl { System::Windows::Forms::Control ^ get(); };
[System.ComponentModel.Browsable(false)]
public System.Windows.Forms.Control TopLevelControl { get; }
[<System.ComponentModel.Browsable(false)>]
member this.TopLevelControl : System.Windows.Forms.Control
Public ReadOnly Property TopLevelControl As Control
속성 값
현재 컨트롤이 포함된 최상위 컨트롤을 나타내는 Control입니다.The Control that represents the top-level control that contains the current control.
- 특성
설명
최상위 컨트롤은 다른 Windows Forms 컨트롤의 부모가 아닌 부모 컨트롤로 정의 됩니다.The top-level control is defined as the parent control that is not parented by another Windows Forms control. 일반적으로 이것은 컨트롤이 포함된 가장 바깥쪽 Form입니다.Typically, this is the outermost Form that the control is contained in. 예를 들어 컨트롤이 MDI 자식에 포함 된 경우 Form 최상위 컨트롤은 mdi (다중 문서 인터페이스) 부모입니다 Form .For example, if the control is contained on an MDI child Form, then the top-level control is the Multiple Document Interface (MDI) parent Form. 컨트롤이의 부모로 설정 되어 있지 않으면 Form 이 속성은을 반환 null
합니다.If the control is not parented on a Form, this property will return null
.