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

屬性值

如果此功能表項目中有顯示 MDI 子視窗的清單,則為 true,否則為 false。 預設為 false

範例

下列程式碼範例會建立 , MenuItem 用來在 MDI 表單中顯示目前開啟的 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 子表單的表單會顯示在視窗清單中。 一次只能顯示九個子視窗。 如果顯示超過九個子視窗,則會顯示「更多視窗...」功能表項目會顯示在視窗清單的結尾。 按一下此功能表項目會顯示一個對話方塊,其中包含目前作用中之子視窗的完整清單。

適用於