Form::LayoutMdi Method (MdiLayout)
.NET Framework (current version)
Arranges the multiple-document interface (MDI) child forms within the MDI parent form.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
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. MDI child forms can be tiled horizontally and vertically, cascaded, or as icons within the MDI parent form.
The following code example shows the event handlers for the menu items of a Window menu in an MDI application's parent form. 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 ); }
.NET Framework
Available since 1.1
Available since 1.1
Show: