語言

MenuItem.MdiList 屬性

定義

取得或設定一個值,指示選單項目是否會被多重文件介面(MDI)子視窗清單填充,這些子視窗會顯示在相關表單中。

public:
 property bool MdiList { bool get(); void set(bool value); };
public bool MdiList { get; set; }
member this.MdiList : bool with get, set
Public Property MdiList As Boolean

屬性值

true如果此選單項目顯示 MDI 子視窗的清單;否則,。 false 預設值為 false。

範例

以下程式碼範例建立 MenuItem 一個,用來顯示目前已開啟的 MDI 子表單清單。

public:
   void SetMDIList()
   {
      // Create the MenuItem to be used to display an MDI list.
      MenuItem^ menuItem1 = gcnew MenuItem;
      // Set this menu item to be used as an MDI list.
      menuItem1->MdiList = true;
   }
public void SetMDIList()
{
   // Create the MenuItem to be used to display an MDI list.
   MenuItem menuItem1 = new MenuItem();
   // Set this menu item to be used as an MDI list.
   menuItem1.MdiList = true;
}
Public Sub SetMDIList()
    ' Create the MenuItem to be used to display an MDI list.
    Dim menuItem1 As New MenuItem()
    ' Set this menu item to be used as an MDI list.
    menuItem1.MdiList = True
End Sub

備註

當選單項目顯示 MDI 子視窗清單時,該清單會作為該選單項目的子選單顯示。 視窗列表中僅顯示定義為 MDI 子表單的表單。 一次只能顯示九個子視窗。 如果顯示超過九個兒童windows,則會出現「更多Windows......「選單項目會顯示在視窗清單的末尾。 點擊此選單項目會顯示一個對話框,裡面有目前啟用的子視窗完整清單。

適用於