Version

TileWindowsHorizontally Method

Invoking this method causes all MDI child windows to be tiled horizontally within the client region of the MDI parent form.
Syntax
'Declaration
 
Public Sub TileWindowsHorizontally() 
public void TileWindowsHorizontally()
Remarks

Tiling windows horizontally provides the maximum width for each child window. Height is adjusted as necessary to fit all the windows inside the available client area.

Example
The following code demonstrates how to call methods on the MdiWindowListTool to manipulate MDI child windows.

Imports System.Diagnostics
Imports Infragistics.Win
Imports Infragistics.Win.UltraWinSchedule

	Private Sub Button27_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button27.Click

		' The MdiWindowListTool provides a number of methods for manipulating
		' MDI child windows.  These methods only have meaning when the MdiWindowList
		' tool is defined in an UltraToolbarsManager component that resides on a
		' form which has its IsMdiContainer property set to true.


		If Me.UltraToolbarsManager1.Tools.Exists("MyMdiWindwListTool") AndAlso _
		   Me.UltraToolbarsManager1.Tools("MyMdiWindwListTool").GetType() Is GetType(MdiWindowListTool) Then

			' Get a reference an mdi Window list tool
			Dim mdiWindowList As MdiWindowListTool = Me.UltraToolbarsManager1.Tools("MyMdiWindwListTool")

			' Call the ArrangeIcons method to arrange the MDI child windows when they
			' are being displayed as icons.
			mdiWindowList.ArrangeIcons()

			' Call the CascadeWindows method to arrange the MDI child windows in a
			' cascading fashion.
			mdiWindowList.CascadeWindows()

			' Call the CloseAllWindows method to close all currently open MDI child
			' windows.
			mdiWindowList.CloseAllWindows()

			' Call the MinimizeAllWindows method to minimize all currently open MDI child
			' windows.
			mdiWindowList.MinimizeAllWindows()

			' Call the RefreshWindowList method to refresh the contents of the window
			' list.
			mdiWindowList.RefreshWindowList()

			' Call the TileWindowsHorizontally method to tile all currently open MDI child
			' windows horizontally.
			mdiWindowList.TileWindowsHorizontally()

			' Call the TileWindowsVertically method to tile all currently open MDI child
			' windows vertically.
			mdiWindowList.TileWindowsVertically()
		End If

	End Sub
using System.Diagnostics;
using Infragistics.Win;
using Infragistics.Win.UltraWinSchedule;

		private void button27_Click(object sender, System.EventArgs e)
		{

			// The MdiWindowListTool provides a number of methods for manipulating
			// MDI child windows.  These methods only have meaning when the MdiWindowList
			// tool is defined in an UltraToolbarsManager component that resides on a
			// form which has its IsMdiContainer property set to true.

			if (this.ultraToolbarsManager1.Tools.Exists("MyMdiWindwListTool"))
			{
				// Get a reference an mdi Window list tool
				MdiWindowListTool mdiWindowList = this.ultraToolbarsManager1.Tools["MyMdiWindwListTool"] as MdiWindowListTool;

				// Call the ArrangeIcons method to arrange the MDI child windows when they
				// are being displayed as icons.
				mdiWindowList.ArrangeIcons();

				// Call the CascadeWindows method to arrange the MDI child windows in a
				// cascading fashion.
				mdiWindowList.CascadeWindows();

				// Call the CloseAllWindows method to close all currently open MDI child
				// windows.
				mdiWindowList.CloseAllWindows();

				// Call the MinimizeAllWindows method to minimize all currently open MDI child
				// windows.
				mdiWindowList.MinimizeAllWindows();

				// Call the RefreshWindowList method to refresh the contents of the window
				// list.
				mdiWindowList.RefreshWindowList();

				// Call the TileWindowsHorizontally method to tile all currently open MDI child
				// windows horizontally.
				mdiWindowList.TileWindowsHorizontally();

				// Call the TileWindowsVertically method to tile all currently open MDI child
				// windows vertically.
				mdiWindowList.TileWindowsVertically();
			}

		}
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also