Click or drag to resize

MenuItem Properties

The MenuItem type exposes the following members.

Properties
  NameDescription
Public propertyCommand
Gets or sets the command to invoke when the menu item is pressed.
Public propertyCommandParameter
Gets or sets the parameter to pass to the Command when executing or determining its CanExecute state.
Public propertyEnabled
Gets or sets a value indicating whether this MenuItem is enabled.
Public propertyOrder
Gets or sets the order that the menu item should use when inserted into a submenu.
Public propertyShortcut
Gets or sets the shortcut key the user can press to activate the menu item.
Public propertyTag
Gets or sets a user-defined tag for the menu item.
Public propertyText
Gets or sets the text of the menu item, with mnemonics identified with &.
Public propertyToolTip
Gets or sets the tool tip of the item.
Public propertyVisible
Gets or sets a value indicating whether this MenuItem is visible.
Top
See Also