MenuStrip.MdiWindowListItem プロパティ
アセンブリ: System.Windows.Forms (system.windows.forms.dll 内)
構文Dim instance As MenuStrip Dim value As ToolStripMenuItem value = instance.MdiWindowListItem instance.MdiWindowListItem = value
public: property ToolStripMenuItem^ MdiWindowListItem { ToolStripMenuItem^ get (); void set (ToolStripMenuItem^ value); }
/** @property */ public ToolStripMenuItem get_MdiWindowListItem () /** @property */ public void set_MdiWindowListItem (ToolStripMenuItem value)
public function get MdiWindowListItem () : ToolStripMenuItem public function set MdiWindowListItem (value : ToolStripMenuItem)
アプリケーションで開かれている MDI 子フォームのリストを表示しているメニュー項目を表す ToolStripMenuItem。
解説MDI の子が表示される ToolStripMenuItem を指定または検出するには、MdiWindowListItem プロパティを使用します。
MdiWindowListItem の値の変更を反映させるには、子メニューで MenuActivate イベントと MenuDeactivate イベントを使用します。
使用例MdiWindowListItem プロパティのコード例を次に示します。このコード例は、ToolStripPanel クラスのトピックで取り上げているコード例の一部分です。
' 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
// 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;
プラットフォームWindows 98, Windows 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。
バージョン情報
参照Weblioに収録されているすべての辞書からMenuStrip.MdiWindowListItem プロパティを検索する場合は、下記のリンクをクリックしてください。
全ての辞書からMenuStrip.MdiWindowListItem プロパティ
を検索
- MenuStrip.MdiWindowListItem プロパティのページへのリンク