Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Wisej.Web.LinkMenuItem
Namespace: Wisej.Web
Assembly: Wisej.Framework (4.0.0.0)
Represents 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.
Initializes a new instance of LinkMenuItem.
String: Returns or sets the URL to navigate to when this item is clicked. (Default: ""
)
String: Returns or sets where to open the URL specified in HRef. (Default: ""
)
Fires the HRefChanged event.
e
Renders the client component.
config
Dynamic configuration object.
EventHandler Fired when the HRef 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.
Wisej.Web.ContextMenu
Namespace: Wisej.Web
Assembly: Wisej.Framework (4.0.0.0)
Represents a context menu associated to a Control.
Initializes a new instance of the ContextMenu class with no menu items specified.
Initializes a new instance of the ContextMenu class with a specified set of MenuItem objects.
menuItems
Initializes a new instance of the ToolTip class with a specified container.
container
RightToLeft: Returns or sets whether the text displayed by the control is displayed from right to left.
IWisejComponent: Returns the component that is displaying the shortcut menu.
Control: Returns the control that is displaying the shortcut menu.
Clones this ContextMenu.
Returns: ContextMenu.
Disposes of the resources, other than memory, used by the ContextMenu.
disposing
true when this method is called by the application rather than a finalizer.
Fires the Collapse event.
e
Fires the Load event.
e
Fires the MenuItemAdded event.
e
Fires the MenuItemRemoved event.
e
Fires the Popup event.
e
Processes the event from the client.
e
Event arguments.
Renders the client component.
config
Dynamic configuration object.
Returns: Boolean.
Displays the context menu at the specified position in relation to the specified component.
component
Can be any Wisej visual component: i.e. tool button, column header, etc.
position
Displays the context menu at the specified position.
pos
Displays the context menu at the specified position in relation to the specified control.
control
position
Throws:
ArgumentNullException The control parameter is null.
ArgumentException The control is not visible.
Displays the context menu at the specified position in relation to the specified control.
control
pos
Throws:
ArgumentNullException The control parameter is null.
ArgumentException The handle of the control does not exist or the control is not visible.
Displays the context menu at the specified position and with the specified alignment in relation to the specified control.
control
pos
alignment
Throws:
ArgumentNullException The control parameter is null.
ArgumentException The control is not visible.
Asynchronously displays the context menu at the specified position in relation to the specified component.
component
Can be any Wisej visual component: i.e. tool button, column header, etc.
position
Returns: Task.
Asynchronously displays the context menu at the specified position.
pos
Returns: Task.
Asynchronously displays the context menu at the specified position in relation to the specified control.
control
position
Returns: Task.
Throws:
ArgumentNullException The control parameter is null.
ArgumentException The control is not visible.
Asynchronously displays the context menu at the specified position in relation to the specified control.
control
pos
Returns: Task.
Throws:
ArgumentNullException The control parameter is null.
ArgumentException The handle of the control does not exist or the control is not visible.
Asynchronously displays the context menu at the specified position and with the specified alignment in relation to the specified control.
control
pos
alignment
Returns: Task.
Throws:
ArgumentNullException The control parameter is null.
ArgumentException The control is not visible.
Updates the component on the client. Overridden to update the owner control.
EventHandler Fired when the context menu collapses.
EventHandler Occurs before the context menu is displayed on the client when shown using one of the Show or ShowAsync methods. It doesn't fire when the context menu is associated to a control and it's shown from a user event (i.e. the user right clicks on the control associated with the context menu).
EventHandler Occurs after the context menu is displayed on the client.
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.
Wisej.Web.Menu
Namespace: Wisej.Web
Assembly: Wisej.Framework (4.0.0.0)
Represents the base functionality for all menus.
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
)
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
)
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
)
Boolean: Returns a flag indicating that this menu instance is used a as menu bar. Which makes the first level menuItem children become menu buttons.
Boolean: Returns a value indicating whether this menu contains any menu items. This property is read-only.
Int32: Returns the number of child menu items without forcing the creation of the collection.
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.
String: Returns or sets the name of the Menu.
Object: Returns or sets user-defined data associated with the control. (Default: null
)
Copies the Menu that is passed as a parameter to the current Menu.
source
Disposes of the resources, other than memory, used by the Menu.
disposing
true when this method is called by the application rather than a finalizer.
Returns the position at which a menu item should be inserted into the menu.
mergeOrder
The 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.
Returns the position at which a menu item should be replaced into the menu.
mergeOrder
The merge order position for the menu item to be merged.
Returns: Int32. The position at which a menu item should be replaced into the menu.
Returns the ContextMenu that contains this menu.
Returns: ContextMenu. The ContextMenu that contains this menu. The default is null.
Returns the MainMenu that contains this menu.
Returns: MainMenu. The MainMenu that contains this menu.
Returns the MenuBar that contains this menu.
Returns: MenuBar. The MenuBar that contains this menu.
Returns: Menu.
Merges the MenuItem objects of one menu with the current menu.
source
Throws:
ArgumentException It was attempted to merge the menu with itself.
Adds references components to the list. Referenced components can be added individually or as a reference to a collection.
items
Container for the referenced components or collections.
Fires the BindingContextChanged event.
e
Fires the MenuItemAdded event.
e
Fired the MenuItemClicked event.
e
Fires the MenuItemRemoved event.
e
Renders the client component.
config
Dynamic configuration object.
item
Validates the current control.
Returns: Boolean. true if the active control is validated.
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.
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.
Wisej.Web.CheckedMenuItem
Namespace: Wisej.Web
Assembly: Wisej.Framework (4.0.0.0)
Represents an individual menu item that is displayed within a MainMenu or ContextMenu and always shows a checkbox next to the label.
Initializes a new instance of CheckedMenuItem.
Fires the Click event.
e
Renders the client component.
config
Dynamic configuration object.
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.
An that contains the event data.
Defines an object that can invoke a .
An array of objects that represent the menu items to add to the shortcut menu.
An that represents the container of the extender.
An that contains the event data.
An that contains the event data.
A that contains the event data.
A that contains the event data.
An that contains the event data.
A that specifies position of the menu in relation to the component parameter.
onclose
Optional async handler for the close event; called when the context menu has been closed. It's the equivalent of handling the
A that specifies the coordinates at which to display the menu.
onclose
Optional async handler for the close event; called when the context menu has been closed. It's the equivalent of handling the
A that specifies the control with which this shortcut menu is associated.
A that specifies position of the menu in relation to the control parameter.
onclose
Optional async handler for the close event; called when the context menu has been closed. It's the equivalent of handling the
A that specifies the control with which this shortcut menu is associated.
A that specifies the coordinates at which to display the menu. These coordinates are specified relative to the client coordinates of the control specified in the control parameter.
onclose
Optional async handler for the close event; called when the context menu has been closed. It's the equivalent of handling the
A that specifies the control with which this shortcut menu is associated.
A that specifies the coordinates at which to display the menu. These coordinates are specified relative to the client coordinates of the control specified in the control parameter.
A that specifies the alignment of the control relative to the pos parameter.
onclose
Optional async handler for the close event; called when the context menu has been closed. It's the equivalent of handling the
A that specifies position of the menu in relation to the component parameter.
A that specifies the coordinates at which to display the menu.
A that specifies the control with which this shortcut menu is associated.
A that specifies position of the menu in relation to the control parameter.
A that specifies the control with which this shortcut menu is associated.
A that specifies the coordinates at which to display the menu. These coordinates are specified relative to the client coordinates of the control specified in the control parameter.
A that specifies the control with which this shortcut menu is associated.
A that specifies the coordinates at which to display the menu. These coordinates are specified relative to the client coordinates of the control specified in the control parameter.
A that specifies the alignment of the control relative to the pos parameter.
The to copy.
The whose menu items are merged with the menu items of the current menu.
An that contains the event data.
A that contains the event data.
A that contains the event data.
A 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 a context menu associated to a .
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.
Represents the main menu in a .
Represents an individual item that is displayed within a or .
An that contains the event data.
Defines an object that can invoke a .
Wisej.Web.MenuItemEventArgs
Namespace: Wisej.Web
Assembly: Wisej.Framework (4.0.0.0)
Provides data for the ControlAdded and ControlRemoved events.
Initializes a new instance of the MenuItemEventArgs class for the specified control.
item
MenuItem: Returns the menu item object used by this event.
Wisej.Web.MainMenu
Namespace: Wisej.Web
Assembly: Wisej.Framework (4.0.0.0)
Represents the main menu in a Form.
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.
container
Initializes a new instance of the MainMenu with a specified set of MenuItem objects.
items
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
)
Color: Returns or sets the background color of the main menu bar.
Boolean: Returns or sets whether clicking menu items causes validation to be performed on the active control. (Default: False
)
Boolean: Returns or sets whether the menu is visible. (Default: True
)
Font: Returns or sets the font of the main menu bar.
Color: Returns or sets the text color of the main menu bar.
Form: The container window (Form or Page) that owns this menu;
Boolean: Returns a flag indicating that this menu instance is used a as menu bar. Which makes the first level menuItem children become menu buttons.
RightToLeft: Returns or sets whether the text displayed by the control is displayed from right to left.
Boolean: Returns or sets whether the menu is visible. (Default: True
)
Creates a new MainMenu that is a duplicate of the current MainMenu.
Returns: MainMenu. A MainMenu that represents the cloned menu.
Disposes of the resources, other than memory, used by the MainMenu.
disposing
true when this method is called by the application rather than a finalizer.
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.
Hides the main menu.
Fires the BackColorChanged event.
e
Fires the EnabledChanged event.
e
Fires the FontChanged event.
e
Fires the ForeColorChanged event.
e
e
Fires the VisibleChanged event.
e
Renders the client component.
config
Dynamic configuration object.
Returns: Boolean.
Shows the main menu.
Updates the component on the client. Overridden to update the owner form.
EventHandler Fired when the BackColor property value changes.
EventHandler Fired when the value of the CausesValidation property changes.
EventHandler Fired when the Enabled property value has changed.
EventHandler Fired when the Font property value changes.
EventHandler Fired when the ForeColor property value changes.
EventHandler Fired when the Visible 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.
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.
Wisej.Web.Menu MenuItemCollection
Namespace: Wisej.Web
Assembly: Wisej.Framework (4.0.0.0)
Represents a collection of MenuItem objects.
Initializes a new instance of MenuItemCollection.
owner
Int32: Returns the number of items in the collection.
Boolean: Returns a value indicating whether this collection can be modified.
MenuItem: Retrieves the item at the specified index within the collection.
Throws:
ArgumentOutOfRangeException The index was less than zero; or the index was greater of equal to the count of items in the collection.
MenuItem: Retrieves the item at the specified index within the collection.
Adds an item to the list of items.
caption
The text of the new menu item.
Returns: MenuItem.
Adds an item to the list of items.
caption
The text of the new menu item.
onClick
An event handler for the click event.
Returns: MenuItem.
Adds an item to the list of items.
caption
The text of the new menu item.
items
List of child menu items.
Returns: MenuItem.
Adds an item to the list of items.
item
The new menu item.
Returns: Int32.
Adds an item to the list of items.
index
The index where to add/insert the new menu item.
item
Returns: Int32.
Adds a collection of items to the list.
items
Removes all items from the Menu.
Removes and disposes all items from the Menu.
dispose
Indicates whether the removed items should be disposed.
Determines if the specified item is located within the collection.
value
An object representing the item to locate in the collection.
Returns: Boolean. true if the item is located within the collection; otherwise, false.
Determines if the specified item is located within the collection.
key
The key of the item to locate.
Returns: Boolean. true if the item is located within the collection; otherwise, false.
Copies the entire collection into an existing array of objects at a specified location within the array.
dest
The object array to copy the collection to.
index
The location in the destination array to copy the collection to.
Finds all the items with a specific key.
key
The key of the item to locate.
searchAllChildren
Indicates that the search should include child items.
Returns: MenuItem[].
Returns an enumerator that can be used to iterate through the item collection.
Returns: IEnumerator. A IEnumerator that represents the item collection.
Retrieves the index within the collection of the specified item.
value
The menu item to locate.
Returns: Int32. The zero-based index where the item is located within the collection; otherwise, -1.
Throws:
ArgumentNullException The value parameter was null.
Retrieves the index within the collection of the specified item.
key
The key for the menu item to locate.
Returns: Int32. The zero-based index where the item is located within the collection; otherwise, -1.
Removes the specified item from the list.
item
The item to remove.
Removes an item at the specified index.
index
The index of the item to remove.
Throws:
ArgumentOutOfRangeException The index parameter was less than zero, or the index parameter was greater than or equal to the count of items in the collection.
Removes the item with the specified key.
key
The key of the menu item to remove.
Renders the child items in an array of configurations.
Returns: Object.
Wisej.Web.MenuItemSizeMode
Namespace: Wisej.Web
Assembly: Wisej.Framework (4.0.0.0)
Specifies how a MenuItem in a MenuBar or a MainMenu behaves when the control resizes.
Auto
The width of the is determined by its contents.
Fill
The uses the available space on the or (the space not taken up by other menu items whose property is set to ) and shares it with other menu items that have their property set to .
Returns or sets how the menu item is resized when in a or
Wisej.Web.MenuItemEventHandler
Namespace: Wisej.Web
Assembly: Wisej.Framework (4.0.0.0)
Represents the method that will handle the MenuItemAdded and MenuItemRemoved events of the Menu class.
sender
The source of the event.
e
A that contains the event data.
Fired when a menu item is clicked.
Fired when a new menu item is added to the .
Fired when a menu item is removed from the .
Fired when a menu item is clicked.
Fired when a new menu item is added to the .
Fired when a menu item is removed from the .
Wisej.Web.MenuBar
Namespace: Wisej.Web
Assembly: Wisej.Framework (4.0.0.0)
Represents a menu bar component.
Initializes a new instance of the MenuBar class.
Boolean: Enables the overflow handling which automatically removes items that don't fit in the MenuBar and adds them to a drop-down menu button. (Default: True
)
BorderStyle: Returns or sets the border style of the MenuBar control. (Default: None
)
Boolean: Returns or sets whether the control causes validation to be performed on controls that require to be validated when this control receives focus. (Default: False
)
Size:
DockStyle: (Default: None
)
MenuItemCollection: Returns the collection of MenuItem objects associated with the menu.
Disposes of the resources (other than memory) used by the MenuBar.
disposing
true when this method is called by the application rather than a finalizer.
Returns: Int32.
proposedSize
Returns: Size.
Returns a collection of referenced components or collection of components.
items
Fires the BindingContextChanged event.
e
e
Fires the MenuItemAdded event.
e
Fired the MenuItemClicked event.
e
Fires the MenuItemRemoved event.
e
e
Renders the client component.
config
Dynamic configuration object.
Sets the specified bounds of the MenuBar control.
x
The new Left property value of the control.
y
The new Top property value of the control.
width
The new Width property value of the control.
height
Not used.
specified
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.
Provides access to the UserData
and Tag
properties associated to the component implementing this interface.
Bindable components implement this interface.
Controls that support drag & drop operations implement this interface.
All wisej components implement this interface.
Allows an object to serialize itself.
The to store in this event.
Represents the method that will handle the and events of the class.
An representing the container of the .
An array of objects that will be added to the .
A 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.
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 .
The object that owns the collection.
The to add to the collection
An that contains the event data.
A that contains the event data.
A that contains the event data.
A that contains the event data.
A combination of the values.
All wisej controls derived from the class must implement this interface.
Add
The is added to the collection of existing objects in a merged menu.
MergeItems
All submenu items of this are merged with those of existing objects at the same position in a merged menu.
Remove
The is not included in a merged menu.
Replace
The replaces an existing at the same position in a merged menu.
Returns or sets a value indicating the behavior of this menu item when its menu is merged with another.