Form.MergedMenu Form.MergedMenu Form.MergedMenu Form.MergedMenu Property

定义

获取窗体的合并菜单。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; }
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分配给窗体,使用Menu属性。To obtain the nonmerged MainMenu assigned to a form, use the Menu property.

适用于

另请参阅