Form.LayoutMdi(MdiLayout) Form.LayoutMdi(MdiLayout) Form.LayoutMdi(MdiLayout) Form.LayoutMdi(MdiLayout) Method

Definición

Organiza los formularios secundarios MDI (interfaz de múltiples documentos) dentro del formulario MDI principal.Arranges the multiple-document interface (MDI) child forms within the MDI parent form.

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)

Parámetros

value
MdiLayout MdiLayout MdiLayout MdiLayout

Uno de los valores de MdiLayout que define la presentación de los formularios MDI secundarios.One of the MdiLayout values that defines the layout of MDI child forms.

Ejemplos

En el ejemplo de código siguiente se muestran los controladores de eventos para los elementos de menú de un menú ventana en el formulario primario de una aplicación MDI.The following code example shows the event handlers for the menu items of a Window menu in an MDI application's parent form. Cada controlador de eventos realiza llamadas al LayoutMdi método para organizar los formularios secundarios que están abiertos actualmente en la aplicación.Each event handler makes calls to the LayoutMdi method to arrange any child forms that are currently open in the application.

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 'HorizontallyTileMyWindows


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


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

Comentarios

Puede usar este método para organizar los formularios MDI secundarios en el formulario primario MDI con el fin de facilitar la navegación y manipulación de los formularios MDI secundarios.You can use this method to arrange the MDI child forms in your MDI parent form to allow for easier navigation and manipulation of MDI child forms. Los formularios MDI secundarios se pueden disponer en mosaico horizontal y vertical, en cascada o como iconos dentro del formulario MDI principal.MDI child forms can be tiled horizontally and vertically, cascaded, or as icons within the MDI parent form.

Se aplica a

Consulte también: