ערוך

שתף באמצעות


PrintPreviewDialog.Menu Property

Definition

Gets or sets the MainMenu that is displayed in the form.

public:
 property System::Windows::Forms::MainMenu ^ Menu { System::Windows::Forms::MainMenu ^ get(); void set(System::Windows::Forms::MainMenu ^ value); };
[System.ComponentModel.Browsable(false)]
public System.Windows.Forms.MainMenu Menu { get; set; }
[<System.ComponentModel.Browsable(false)>]
member this.Menu : System.Windows.Forms.MainMenu with get, set
Public Property Menu As MainMenu

Property Value

A MainMenu that represents the menu to display in the form.

Attributes

Remarks

This property is not relevant for this class.

You can use this property to switch between complete menu sets at run time. For example, you can define one MainMenu to be displayed when your multiple document interface (MDI) form has no active MDI child forms and another MainMenu to display when a child window is displayed. You can also use a different MainMenu when specific conditions that require displaying a different menu set exist in your application.

Applies to