Form.MergedMenu 属性
定义
获取窗体的合并菜单。Gets the merged menu for the form.
public:
property System::Windows::Forms::MainMenu ^ MergedMenu { System::Windows::Forms::MainMenu ^ get(); };
[System.ComponentModel.Browsable(false)]
public System.Windows.Forms.MainMenu MergedMenu { get; }
[<System.ComponentModel.Browsable(false)>]
member this.MergedMenu : System.Windows.Forms.MainMenu
Public ReadOnly Property MergedMenu As MainMenu
属性值
MainMenu,表示窗体的合并菜单。A MainMenu that represents the merged menu of the form.
- 属性
注解
此属性主要在窗体为多文档界面 (MDI) 子窗体(将其菜单与其父窗体的菜单合并)时使用。This property is primarily used when the form is a multiple-document interface (MDI) child form that merges its menu with its parent form's menu. 您可以使用此属性在 MDI 应用程序中获取当前的菜单结构,以对菜单结构进行更改或添加。You can use this property to obtain the current menu structure in an MDI application to make changes or additions to the menu structure. 若要获取 MainMenu 分配给窗体的 nonmerged,请使用 Menu 属性。To obtain the nonmerged MainMenu assigned to a form, use the Menu property.