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. 若要获取分配给窗体的 nonmerged MainMenu,请使用 @no__t 属性。To obtain the nonmerged MainMenu assigned to a form, use the Menu property.

适用于

另请参阅