Skip to main content
Version: 3.5

Menu

Namespace: Wisej.Web

Assembly: Wisej.Framework (3.5.0.0)

Represents the base functionality for all menus.

public class Menu : BindableComponent, ICloneable

Properties

Instance memberAccessibleDescription

String: Returns or sets the description that will be reported to accessibility client applications. It is assigned to the "alt" attribute of the browser element. (Default: null)

Instance memberAccessibleName

String: Returns or sets the name of the control for use by accessibility client applications. It is assigned to the "name" attribute of the browser element. (Default: null)

Instance memberAccessibleRole

AccessibleRole: Returns or sets the accessible role of the menu item that will be reported to accessibility client applications. It is assigned to the "role" attribute of the browser element. (Default: Default)

Instance memberIsParent

Boolean: Returns a value indicating whether this menu contains any menu items. This property is read-only.

Instance memberItemCount

Int32: Returns the number of child menu items without forcing the creation of the collection.

Instance memberMdiListItem

MenuItem: Returns the child menu item that is used to display a list of multiple document interface (MDI) child forms.

MenuItemCollection: Returns the collection of MenuItem objects associated with the menu.

Instance memberName

String: Returns or sets the name of the Menu.

Instance memberTag

Object: Returns or sets user-defined data associated with the control. (Default: null)

Methods

Instance memberGetContextMenu()

Returns the ContextMenu that contains this menu.

Returns: ContextMenu. The ContextMenu that contains this menu. The default is null.

Instance memberGetMainMenu()

Returns the MainMenu that contains this menu.

Returns: MainMenu. The MainMenu that contains this menu.

Instance memberGetMenuBar()

Returns the MenuBar that contains this menu.

Returns: MenuBar. The MenuBar that contains this menu.

Instance memberMergeMenu(source)

Merges the MenuItem objects of one menu with the current menu.

ParameterTypeDescription
sourceMenuThe Menu whose menu items are merged with the menu items of the current menu.

Throws:

Events

MenuItemEventHandler Fired when a new menu item is added to the MenuItemCollection.

MenuItemEventHandler Fired when a menu item is clicked.

MenuItemEventHandler Fired when a menu item is removed from the MenuItemCollection.

Inherited By

NameDescription
CheckedMenuItemRepresents an individual menu item that is displayed within a MainMenu or ContextMenu and always shows a checkbox next to the label.
ContextMenuRepresents a context menu associated to a Control.
LinkMenuItemRepresents an individual menu item that is displayed within a MainMenu or ContextMenu rendered using the <a> link element to let the browser process the specified HRef URL.
MainMenuRepresents the main menu in a Form.
MenuItemRepresents an individual item that is displayed within a MainMenu or ContextMenu.

Implements

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