MenuStrip.MdiWindowListItem MenuStrip.MdiWindowListItem MenuStrip.MdiWindowListItem MenuStrip.MdiWindowListItem Property

정의

MDI(다중 문서 인터페이스) 자식 폼의 목록을 표시하는 데 사용되는 ToolStripMenuItem을 가져오거나 설정합니다.Gets or sets the ToolStripMenuItem that is used to display a list of Multiple-document interface (MDI) child forms.

public:
 property System::Windows::Forms::ToolStripMenuItem ^ MdiWindowListItem { System::Windows::Forms::ToolStripMenuItem ^ get(); void set(System::Windows::Forms::ToolStripMenuItem ^ value); };
[System.ComponentModel.TypeConverter(typeof(System.Windows.Forms.MdiWindowListItemConverter))]
public System.Windows.Forms.ToolStripMenuItem MdiWindowListItem { get; set; }
member this.MdiWindowListItem : System.Windows.Forms.ToolStripMenuItem with get, set
Public Property MdiWindowListItem As ToolStripMenuItem

속성 값

애플리케이션에 열려 있는 MDI 자식 폼의 목록을 표시하는 메뉴 항목을 나타내는 ToolStripMenuItem입니다.A ToolStripMenuItem that represents the menu item displaying a list of MDI child forms that are open in the application.

예제

다음 코드 예제는 MdiWindowListItem 속성입니다.The following code example demonstrates the MdiWindowListItem property. 이 예제는에 대해 제공 된 큰 예제의 일부는 ToolStripPanel 클래스입니다.This example is part of a larger example provided for the ToolStripPanel class.

// Create a MenuStrip control with a new window.
MenuStrip ms = new MenuStrip();
ToolStripMenuItem windowMenu = new ToolStripMenuItem("Window");
ToolStripMenuItem windowNewMenu = new ToolStripMenuItem("New", null, new EventHandler(windowNewMenu_Click));
windowMenu.DropDownItems.Add(windowNewMenu);
((ToolStripDropDownMenu)(windowMenu.DropDown)).ShowImageMargin = false;
((ToolStripDropDownMenu)(windowMenu.DropDown)).ShowCheckMargin = true;

// Assign the ToolStripMenuItem that displays 
// the list of child forms.
ms.MdiWindowListItem = windowMenu;

// Add the window ToolStripMenuItem to the MenuStrip.
ms.Items.Add(windowMenu);

// Dock the MenuStrip to the top of the form.
ms.Dock = DockStyle.Top;

// The Form.MainMenuStrip property determines the merge target.
this.MainMenuStrip = ms;
' Create a MenuStrip control with a new window.
Dim ms As New MenuStrip()
Dim windowMenu As New ToolStripMenuItem("Window")
Dim windowNewMenu As New ToolStripMenuItem("New", Nothing, New EventHandler(AddressOf windowNewMenu_Click))
windowMenu.DropDownItems.Add(windowNewMenu)
CType(windowMenu.DropDown, ToolStripDropDownMenu).ShowImageMargin = False
CType(windowMenu.DropDown, ToolStripDropDownMenu).ShowCheckMargin = True

' Assign the ToolStripMenuItem that displays 
' the list of child forms.
ms.MdiWindowListItem = windowMenu

' Add the window ToolStripMenuItem to the MenuStrip.
ms.Items.Add(windowMenu)

' Dock the MenuStrip to the top of the form.
ms.Dock = DockStyle.Top

' The Form.MainMenuStrip property determines the merge target.
Me.MainMenuStrip = ms

설명

사용 된 MdiWindowListItem 속성을 지정 하거나 찾으려면을 ToolStripMenuItem MDI 자식 폼을 표시 합니다.Use the MdiWindowListItem property to designate or discover which ToolStripMenuItem displays MDI children.

사용 합니다 MenuActivateMenuDeactivate 값으로 변경 내용을 반영 하도록 자식 메뉴에는 이벤트 MdiWindowListItem합니다.Use the MenuActivate and MenuDeactivate events on child menus to reflect changes to the value of MdiWindowListItem.

적용 대상