Wisej.Web.MenuItem
Namespace: Wisej.Web
Assembly: Wisej.Framework (4.0.0.0)
Represents an individual item that is displayed within a MainMenu or ContextMenu.
Initializes a MenuItem with a blank caption.
Initializes a new instance of the MenuItem class with a specified caption for the menu item.
text
The caption for the menu item.
Initializes a new instance of the class with a specified caption and event handler for the Click event of the menu item.
text
The caption for the menu item.
onClick
Initializes a new instance of the class with a specified caption, event handler, and associated shortcut key for the menu item.
text
The caption for the menu item.
onClick
shortcut
Initializes a new instance of the class with a specified caption and an array of submenu items defined for the menu item.
text
The caption for the menu item.
items
Initializes a new instance of the MenuItem class with a specified caption; defined event-handlers for the Click, Select and Popup events; a shortcut key; a merge type; and order specified for the menu item.
mergeType
mergeOrder
The relative position that this menu item will take in a merged menu.
shortcut
text
The caption for the menu item.
onClick
onPopup
onSelect
items
Boolean: Returns or sets a value indicating that the control can display HTML in the Text property. (Default: False
)
Boolean: Returns or sets whether the application blocks the browser with a modal mask when this menu item is clicked and until the server is done processing the execution request. (Default: False
)
Color: Returns or sets the background color of the menu item.
CharacterCasing: Returns or sets the case of the text to display to the user. (Default: Normal
)
Boolean: Returns or sets whether a check mark appears next to the text of the menu item. (Default: False
)
Throws:
ArgumentException The MenuItem is a top-level menu or has children.
ICommand: Returns or sets the ICommand implementation to invoke. (Default: null
)
Boolean: Returns or sets whether the menu item is enabled. (Default: True
)
Font: Returns or sets the font of the menu item.
Color: Returns or sets the text color of the menu item.
Form: Returns the Form that owns the Menu.
Image: Returns or sets the icon that is displayed by MenuItem.
ImagePropertySettings: Creates the property manager for the Icon properties on first use.
String: Returns or sets the theme name or URL for the icon to display in the MenuItem.
Int32: Returns or sets a value indicating the position of the menu item in its parent menu.
Throws:
ArgumentOutOfRangeException The assigned value is less than zero or greater than the item count.
Boolean: Returns a value indicating whether the menu item contains child menu items.
Boolean: Returns or sets whether the menu item will be populated with a list of the Multiple Document Interface (MDI) child windows that are displayed within the associated form. (Default: False
)
Int32: Returns the unique identifier for this menu item.
Int32: Returns or sets a value indicating the relative position of the menu item when it is merged with another. (Default: 0
)
MenuMerge: Returns or sets a value indicating the behavior of this menu item when its menu is merged with another. (Default: Add
)
Menu: The parent menu that contains this menu item
Boolean: Returns or sets whether the MenuItem, if checked, displays a radio-button instead of a check mark. (Default: False
)
String: Returns the text to use for rendering to the client.
Shortcut: Returns or sets a value indicating the shortcut key associated with the menu item. (Default: None
)
Boolean: Returns or sets whether the shortcut key that is associated with the menu item is displayed next to the menu item caption. (Default: True
)
MenuItemSizeMode: Returns or sets how the menu item is resized when in a MenuBar or MainMenu (Default: Auto
)
Control: Returns the Control that owns the ContextMenu.
String: Returns or sets a value indicating the text of the menu item. Use "-" to display the menu separator.
Boolean: Returns or sets whether the menu item is visible. (Default: True
)
Determines whether the menu item is a child of a top-level form, page or desktop that are currently active.
item
The menu item to verify if it's a child of a top-level container.
Returns: Boolean. true if the specified menu item is a child of an active top-level container.
Creates a copy of the current MenuItem.
Returns: MenuItem. A MenuItem that represents the duplicated menu item.
Creates a copy of the specified MenuItem.
source
Indicates whether to clone the menu's child items.
Disposes of the resources (other than memory) used by the MenuItem.
disposing
true when this method is called by the application rather than a finalizer.
Merges this MenuItem with another MenuItem and returns the resulting merged MenuItem.
Returns: MenuItem. A MenuItem that represents the merged menu item.
Fires the BackColorChanged event.
e
Fires the CheckedChanged event.
e
Fires the Click event.
e
Fires the CommandChanged event.
e
Fires the FontChanged event.
e
Fires the ForeColorChanged event.
e
Fires the Popup event.
e
Fires the Popup event.
e
Fires the Select event.
e
This event fires only if there is an handler attached to it. A simple overload of the On[Event] method in a derived class will not be invoked unless there is at least one handler attached to the event.
Fires the TextChanged event.
e
Processes the event from the client.
e
Event arguments.
Renders the client component.
config
Dynamic configuration object.
Generates a Click event for the MenuItem, simulating a click by a user.
Fires the Select event for this menu item.
Creates child menu items corresponding to the visible mdi child forms.
Updates the component on the client.
Updates the checked (activated) item in the mdi list.
EventHandler Fired when the BackColor property value changes.
EventHandler Fired when the Checked property value changes.
EventHandler Fired when the menu item is clicked or selected using a shortcut key or access key defined for the menu item.
EventHandler Fired when the Command property value changes.
EventHandler Fired when the Font property value changes.
EventHandler Fired when the ForeColor property value changes.
EventHandler Occurs before a menu item's list of menu items is displayed.
EventHandler Fired when the user places the pointer over a menu item.
This event fires only if there is an handler attached to it. A simple overload of the On[Event] method in a derived class will not be invoked unless there is at least one handler attached to the event.
EventHandler Fired when the Text property value changes.
Provides access to the UserData
and Tag
properties associated to the component implementing this interface.
Bindable components implement this interface.
All wisej components implement this interface.
Allows an object to serialize itself.
The that handles the event for this menu item.
The that handles the event for this menu item.
One of the values.
An array of objects that contains the submenu items for this menu item.
One of the values.
One of the values.
The that handles the event for this menu item.
The that handles the event for this menu item.
The that handles the event for this menu item.
An array of objects that contains the submenu items for this menu item.
The that represents the menu item to copy.
includeChildren
A that contains the event data.
An that contains the event data.
An that contains the event data.
A that contains the event data.
A that contains the event data.
A that contains the event data.
An that contains the event data.
An that contains the event data.
An that contains the event data.
An that contains the event data.
Represents an individual menu item that is displayed within a or and always shows a checkbox next to the label.
Represents an individual menu item that is displayed within a or rendered using the <a> link element to let the browser process the specified URL.
Defines an object that can invoke a .