Skip to main content
Version: 4.1

Menu

Namespace: Wisej.Web

Assembly: Wisej.Framework (4.1.0.0)

Represents the base functionality for all menus.

public abstract class Menu : BindableComponent, ICloneable

Properties​

Instance member AccessibleDescription​

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)

Value: The description of the control used by accessibility client applications. The default is null.

Instance member AccessibleName​

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)

Value: The name of the control, for use by accessibility client applications. The default is null.

Instance member Handle​

IntPtr: Returns a value representing the handle for the Menu.

Value: The handle of the Menu.

Instance member IsParent​

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

Value: true if this menu contains MenuItem objects; otherwise, false. The default is false.

Instance member ItemCount​

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

Instance member MdiListItem​

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

Value: A MenuItem that represents the menu item displaying a list of MDI child forms that are open in the application.

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

Value: A MenuItemCollection that represents the list of MenuItem objects stored in the menu.

Instance member Name​

String: Returns or sets the name of the Menu.

Value: A string representing the name of the Menu item.

Instance member Tag​

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

Value: An object representing the data.

Methods​

Protected member CloneMenu(source)​

Copies the Menu that is passed as a parameter to the current Menu.

ParameterTypeDescription
sourceMenuThe Menu to copy.

Protected member Dispose(disposing)​

Disposes of the resources, other than memory, used by the Menu.

ParameterTypeDescription
disposingBooleantrue when this method is called by the application rather than a finalizer.

Protected member FindMergePosition(mergeOrder)​

Returns the position at which a menu item should be inserted into the menu.

ParameterTypeDescription
mergeOrderInt32The merge order position for the menu item to be merged.

Returns: Int32. The position at which a menu item should be inserted into the menu.

Static member FromHandle(handle)​

Returns the menu that is currently associated with the specified server-side id (handle).

ParameterTypeDescription
handleIntPtrThe handle to search for.

Returns: Menu. The Menu associated with the specified handle; returns null if no menu with the specified handle is found.

Instance member GetContextMenu()​

Returns the ContextMenu that contains this menu.

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

Instance member GetMainMenu()​

Returns the MainMenu that contains this menu.

Returns: MainMenu. The MainMenu that contains this menu.

Instance member GetMenuBar()​

Returns the MenuBar that contains this menu.

Returns: MenuBar. The MenuBar that contains this menu.

Instance member MergeMenu(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:

Protected member OnAddReferences(items)​

Adds references components to the list. Referenced components can be added individually or as a reference to a collection.

ParameterTypeDescription
itemsIListContainer for the referenced components or collections.

Protected member OnBindingContextChanged(e)​

Fires the BindingContextChanged event.

ParameterTypeDescription
eEventArgsAn EventArgs that contains the event data.

Protected member OnMenuItemAdded(e)​

Fires the MenuItemAdded event.

ParameterTypeDescription
eMenuItemEventArgsA MenuItemEventArgs that contains the event data.

Protected member OnMenuItemClicked(e)​

Fired the MenuItemClicked event.

ParameterTypeDescription
eMenuItemEventArgsA MenuItemEventArgs that contains the event data.

Protected member OnMenuItemRemoved(e)​

Fires the MenuItemRemoved event.

ParameterTypeDescription
eMenuItemEventArgsA MenuItemEventArgs that contains the event data.

Protected member OnWebRender(config)​

Renders the client component.

ParameterTypeDescription
configObjectDynamic configuration object.

Protected member ValidateActiveControl()​

Validates the current control.

Returns: Boolean. true if the active control is validated.

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
IUserDataProvides access to the UserData and Tag properties associated to the component implementing this interface.
IBindableComponentBindable components implement this interface.
IWisejComponentAll wisej components implement this interface.
IWisejSerializableAllows an object to serialize itself.