Skip to main content
Version: 3.5

MainMenu

Namespace: Wisej.Web

Assembly: Wisej.Framework (3.5.0.0)

Represents the main menu in a Form.

public class MainMenu : Menu

Constructors​

Initializes a new instance of the MainMenu class without any specified menu items.

Initializes a new instance of the MainMenu class with the specified container.

NameTypeDescription
containerIContainerAn IContainer representing the container of the MainMenu.

Initializes a new instance of the MainMenu with a specified set of MenuItem objects.

NameTypeDescription
itemsMenuItem[]An array of MenuItem objects that will be added to the MainMenu.

Properties​

Instance memberAutoOverflow​

Boolean: Enables the overflow handling which automatically removes items that don't fit in the MainMenu and adds them to a drop-down button. (Default: True)

Instance memberBackColor​

Color: Returns or sets the background color of the main menu bar.

Instance memberCausesValidation​

Boolean: Returns or sets whether clicking menu items causes validation to be performed on the active control. (Default: False)

Instance memberEnabled​

Boolean: Returns or sets whether the menu is visible. (Default: True)

Instance memberFont​

Font: Returns or sets the font of the main menu bar.

Instance memberForeColor​

Color: Returns or sets the text color of the main menu bar.

Instance memberRightToLeft​

RightToLeft: Returns or sets whether the text displayed by the control is displayed from right to left.

Instance memberVisible​

Boolean: Returns or sets whether the menu is visible. (Default: True)

Methods​

Instance memberCloneMenu()​

Creates a new MainMenu that is a duplicate of the current MainMenu.

Returns: MainMenu. A MainMenu that represents the cloned menu.

Instance memberGetForm()​

Returns the Form that contains this menu.

Returns: Form. A Form that is the container for this menu. Returns null if the MainMenu is not currently hosted on a form.

Instance memberHide()​

Hides the main menu.

Instance memberShow()​

Shows the main menu.

Instance memberUpdate()​

Updates the component on the client. Overridden to update the owner form.

Events​

Instance memberBackColorChanged​

EventHandler Fired when the BackColor property value changes.

Instance memberCausesValidationChanged​

EventHandler Fired when the value of the CausesValidation property changes.

Instance memberEnabledChanged​

EventHandler Fired when the Enabled property value has changed.

Instance memberFontChanged​

EventHandler Fired when the Font property value changes.

Instance memberForeColorChanged​

EventHandler Fired when the ForeColor property value changes.

Instance memberVisibleChanged​

EventHandler Fired when the Visible property value changes.

Implements​

NameDescription
IBindableComponentBindable components implement this interface.
IWisejComponentAll wisej components implement this interface.
IWisejSerializableAllows an object to serialize itself.