Form.LayoutMdi(MdiLayout) 메서드

정의

MDI(다중 문서 인터페이스) 부모 폼 내에 MDI 자식 폼을 정렬합니다.

public:
 void LayoutMdi(System::Windows::Forms::MdiLayout value);
public void LayoutMdi (System.Windows.Forms.MdiLayout value);
member this.LayoutMdi : System.Windows.Forms.MdiLayout -> unit
Public Sub LayoutMdi (value As MdiLayout)

매개 변수

value
MdiLayout

MDI 자식 폼의 레이아웃을 정의하는 MdiLayout 값 중 하나입니다.

예제

다음 예제에서는 MDI 애플리케이션의 부모 폼에서 창 메뉴의 메뉴 항목에 대 한 이벤트 처리기를 보여 줍니다. 각 이벤트 처리기를 호출 하는 LayoutMdi 자식 폼 정렬 하는 방법은 애플리케이션에서 현재 열려 있습니다.

private:
   void HorizontallyTileMyWindows( Object^ sender, System::EventArgs^ e )
   {
      // Tile all child forms horizontally.
      this->LayoutMdi( MdiLayout::TileHorizontal );
   }

   void VerticallyTileMyWindows( Object^ sender, System::EventArgs^ e )
   {
      // Tile all child forms vertically.
      this->LayoutMdi( MdiLayout::TileVertical );
   }

   void CascadeMyWindows( Object^ sender, System::EventArgs^ e )
   {
      // Cascade all MDI child windows.
      this->LayoutMdi( MdiLayout::Cascade );
   }
private void HorizontallyTileMyWindows (object sender, System.EventArgs e)
 {
    // Tile all child forms horizontally.
    this.LayoutMdi( MdiLayout.TileHorizontal );
 }
 
 private void VerticallyTileMyWindows (object sender, System.EventArgs e)
 {
    // Tile all child forms vertically.
    this.LayoutMdi( MdiLayout.TileVertical );
 }
 
 private void CascadeMyWindows (object sender, System.EventArgs e)
 {
    // Cascade all MDI child windows.
    this.LayoutMdi( MdiLayout.Cascade );
 }
Private Sub HorizontallyTileMyWindows(sender As Object, e As System.EventArgs)
    ' Tile all child forms horizontally.
    Me.LayoutMdi(MdiLayout.TileHorizontal)
End Sub


Private Sub VerticallyTileMyWindows(sender As Object, e As System.EventArgs)
    ' Tile all child forms vertically.
    Me.LayoutMdi(MdiLayout.TileVertical)
End Sub


Private Sub CascadeMyWindows(sender As Object, e As System.EventArgs)
    ' Cascade all MDI child windows.
    Me.LayoutMdi(MdiLayout.Cascade)
End Sub

설명

이 메서드를 사용하여 MDI 자식 양식을 보다 쉽게 탐색하고 조작할 수 있도록 MDI 부모 양식에서 MDI 자식 양식을 정렬할 수 있습니다. MDI 자식 폼은 MDI 부모 폼 내에서 가로 및 세로, 계단식 또는 아이콘으로 바일 수 있습니다.

적용 대상

추가 정보