Bagikan melalui


Form.MergedMenu Properti

Definisi

Perhatian

MainMenu is provided for binary compatibility with .NET Framework and is not intended to be used directly from your code. Use MenuStrip instead.

Mendapatkan menu gabungan untuk formulir.

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)]
[System.Obsolete("`MainMenu` is provided for binary compatibility with .NET Framework and is not intended to be used directly from your code. Use `MenuStrip` instead.", false, DiagnosticId="WFDEV006", UrlFormat="https://aka.ms/winforms-warnings/{0}")]
public System.Windows.Forms.MainMenu MergedMenu { get; }
[<System.ComponentModel.Browsable(false)>]
member this.MergedMenu : System.Windows.Forms.MainMenu
[<System.ComponentModel.Browsable(false)>]
[<System.Obsolete("`MainMenu` is provided for binary compatibility with .NET Framework and is not intended to be used directly from your code. Use `MenuStrip` instead.", false, DiagnosticId="WFDEV006", UrlFormat="https://aka.ms/winforms-warnings/{0}")>]
member this.MergedMenu : System.Windows.Forms.MainMenu
Public ReadOnly Property MergedMenu As MainMenu

Nilai Properti

MainMenu yang mewakili menu gabungan formulir.

Atribut

Keterangan

Properti ini terutama digunakan ketika formulir adalah formulir turunan antarmuka multi-dokumen (MDI) yang menggabungkan menunya dengan menu formulir induknya. Anda dapat menggunakan properti ini untuk mendapatkan struktur menu saat ini dalam aplikasi MDI untuk membuat perubahan atau penambahan pada struktur menu. Untuk mendapatkan nonmerged yang MainMenu ditetapkan ke formulir, gunakan Menu properti .

Berlaku untuk

Lihat juga