Table of Contents

Method SetMainMenu

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

SetMainMenu(Window, MainMenu?)

Sets the main menu for the specified window.

void SetMainMenu(Window window, MainMenu? menu)

Parameters

window Window

The window for which the main menu is being set. Cannot be null.

menu MainMenu

The main menu to set. Pass null to remove the current main menu.

Remarks

This method associates the specified main menu with the given window. If menu is null, the current main menu for the window will be removed.