Form.MainMenuStrip Właściwość

Definicja

Pobiera lub ustawia podstawowy kontener menu dla formularza.

public:
 property System::Windows::Forms::MenuStrip ^ MainMenuStrip { System::Windows::Forms::MenuStrip ^ get(); void set(System::Windows::Forms::MenuStrip ^ value); };
[System.ComponentModel.TypeConverter(typeof(System.ComponentModel.ReferenceConverter))]
public System.Windows.Forms.MenuStrip MainMenuStrip { get; set; }
[System.ComponentModel.TypeConverter(typeof(System.ComponentModel.ReferenceConverter))]
public System.Windows.Forms.MenuStrip? MainMenuStrip { get; set; }
[<System.ComponentModel.TypeConverter(typeof(System.ComponentModel.ReferenceConverter))>]
member this.MainMenuStrip : System.Windows.Forms.MenuStrip with get, set
Public Property MainMenuStrip As MenuStrip

Wartość właściwości

MenuStrip

Obiekt MenuStrip reprezentujący kontener struktury menu formularza. Wartość domyślna to null.

Atrybuty

Uwagi

Oprócz ustawiania MainMenuStrip właściwości należy Add MenuStrip kontrolować Controls kolekcję formularza.

Klasa MenuStrip zastępuje klasę MainMenu w poprzednich wersjach .NET Framework.

Dotyczy

Zobacz też