バージョン

CascadeWindows メソッド

すべての MDI 子ウィンドウを、MDI 親フォームのクライアント領域にカスケードされます。
シンタックス
'宣言
 
Public Sub CascadeWindows() 
public void CascadeWindows()
解説

このメソッドを呼び出すと、MDI 子フォームが MDI 親フォームのウィンドウにカスケードされた順序で配置されます。カスケードは MDI 親のクライアント領域で使用できるスペース量を考慮してフォームを順番にサイズ変更および再配置します。各フォームは、前のフォームから右下にオフセットされます。z オーダーで一番上のフォームだけが完全に表示できますが、すべてのフォームのタイトル バーは簡単にアクセスできます。

使用例
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();
			}

		}
参照