All pages
Powered by GitBook
1 of 1

Loading...

MenuItem

Wisej.Web.MenuItem

Namespace: Wisej.Web

Assembly: Wisej.Framework (2.2.0.0)

  • Component

    • Component

Represents an individual item that is displayed within a or .

Constructors

MenuItem()

Initializes a with a blank caption.

MenuItem(text)

Initializes a new instance of the class with a specified caption for the menu item.

Name
Type
Description

MenuItem(text, onClick)

Initializes a new instance of the class with a specified caption and event handler for the event of the menu item.

Name
Type
Description

MenuItem(text, onClick, shortcut)

Initializes a new instance of the class with a specified caption, event handler, and associated shortcut key for the menu item.

Name
Type
Description

MenuItem(text, items)

Initializes a new instance of the class with a specified caption and an array of submenu items defined for the menu item.

Name
Type
Description

MenuItem(mergeType, mergeOrder, shortcut, text, onClick, onPopup, onSelect, items)

Initializes a new instance of the class with a specified caption; defined event-handlers for the , and events; a shortcut key; a merge type; and order specified for the menu item.

Name
Type
Description

Properties

AllowHtml

: Returns or sets a value indicating that the control can display html in the Text property.

AutoShowLoader

: 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.

BackColor

: Returns or sets the background color of the menu item.

Checked

: Returns or sets whether a check mark appears next to the text of the menu item.

Throws:

  • The is a top-level menu or has children.

Enabled

: Returns or sets whether the menu item is enabled.

Font

: Returns or sets the font of the menu item.

ForeColor

: Returns or sets the text color of the menu item.

Form

: Returns the that owns the .

Icon

: Returns or sets the icon that is displayed by .

IconSource

: Returns or sets the theme name or URL for the icon to display in the .

Index

: Returns or sets a value indicating the position of the menu item in its parent menu.

Throws:

  • The assigned value is less than zero or greater than the item count.

IsParent

: Returns a value indicating whether the menu item contains child menu items.

MdiList

: 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.

MergeOrder

: Returns or sets a value indicating the relative position of the menu item when it is merged with another.

MergeType

: Returns or sets a value indicating the behavior of this menu item when its menu is merged with another.

Parent

: The parent menu that contains this menu item

RadioCheck

: Returns or sets whether the , if checked, displays a radio-button instead of a check mark.

Shortcut

: Returns or sets a value indicating the shortcut key associated with the menu item.

ShowShortcut

: Returns or sets whether the shortcut key that is associated with the menu item is displayed next to the menu item caption.

SourceControl

: Returns the that owns the .

Text

: Returns or sets a value indicating the text of the menu item. Use "-" to display the menu separator.

Visible

: Returns or sets whether the menu item is visible.

Methods

CloneMenu()

Creates a copy of the current .

Returns: . A that represents the duplicated menu item.

MergeMenu()

Merges this with another and returns the resulting merged .

Returns: . A that represents the merged menu item.

PerformClick()

Generates a event for the , simulating a click by a user.

PerformSelect()

Fires the event for this menu item.

Update()

Updates the component on the client.

Events

BackColorChanged

Fired when the property value changes.

Click

Fired when the menu item is clicked or selected using a shortcut key or access key defined for the menu item.

FontChanged

Fired when the property value changes.

ForeColorChanged

Fired when the property value changes.

Popup

Occurs before a menu item's list of menu items is displayed.

Select

Fired when the user places the pointer over a menu item.

TextChanged

Fired when the property value changes.

Inherited By

Name
Description

Implements

Name
Description

The caption for the menu item.

onClick

The that handles the event for this menu item.

onPopup

The that handles the event for this menu item.

onSelect

The that handles the event for this menu item.

items

An array of objects that contains the submenu items for this menu item.

text

String

The caption for the menu item.

text

String

The caption for the menu item.

onClick

EventHandler

The EventHandler that handles the Click event for this menu item.

text

String

The caption for the menu item.

onClick

EventHandler

The EventHandler that handles the Click event for this menu item.

shortcut

Shortcut

One of the Shortcut values.

text

String

The caption for the menu item.

items

MenuItem[]

An array of MenuItem objects that contains the submenu items for this menu item.

mergeType

MenuMerge

One of the MenuMerge values.

mergeOrder

Int32

The relative position that this menu item will take in a merged menu.

shortcut

Shortcut

One of the Shortcut values.

LinkMenuItem

Represents an individual menu item that is displayed within a MainMenu or ContextMenu rendered using the link element to let the browser process the specified HRef URL.

IWisejComponent

All wisej components implement this interface.

IWisejSerializable

Allows an object to serialize itself.

Menu
MenuItem
MainMenu
ContextMenu
Public Class MenuItem
    Inherits Menu
MenuItem
MenuItem
Click
MenuItem
Click
Select
Popup
Boolean
Boolean
Color
Boolean
ArgumentException
MenuItem
Boolean
Font
Color
Form
Form
Menu
Image
MenuItem
String
MenuItem
Int32
ArgumentOutOfRangeException
Boolean
Boolean
Int32
MenuMerge
Menu
Boolean
MenuItem
Shortcut
Boolean
Control
Control
ContextMenu
String
Boolean
MenuItem
MenuItem
MenuItem
MenuItem
MenuItem
MenuItem
MenuItem
MenuItem
Click
MenuItem
Select
EventHandler
BackColor
EventHandler
EventHandler
Font
EventHandler
ForeColor
EventHandler
EventHandler
EventHandler
Text
public class MenuItem : Menu

text

String
EventHandler
EventHandler
Click
EventHandler
EventHandler
Popup
EventHandler
EventHandler
Select
MenuItem[]
MenuItem