MenuItem

Description

The MenuItem class implements an object that is a menu item.

Properties inherited from IMenuItem

  Property name Brief description
The Action property determines an action that is associated with the menu item.
The AdditionalShortCuts property returns the collection of additional combinations of hot keys that are connected with this menu item.
The AutoCheck property determines whether the state of flag should be changed automatically when the menu item is selected.
The Checked property determines state of check box that is displayed to the left of the menu item.
The CloseOnCommand property indicates whether menu closes after this menu item has been selected.
The DefaultItem property determines whether it is possible to execute this menu item by default when user makes double click on the parent submenu.
The Enabled property determines whether the menu item is available for user.
The GroupIndex property sets index of the menu items group.
The ImageIndex property determines index of the image that is displayed in the menu item.
The IsCaption property determines whether the current element is a caption.
The Items property returns a collection of submenus of this menu item.
The RadioItem property determines whether the radio-switch should be used to specify the selected item.
The ShortCut property determines combination of hot keys for the quick selection of menu item.
The Text property determines the row identifying a component for a user.
The Visible property determines whether the menu item is visible during form execution.

Properties inherited from IComponent

  Property name Brief description
ComponentCount The ComponentCount property returns the number of child components, located on the parent component.
Components The Components property returns child property, the index of which is passed by the input parameter.
Data The Data property is used to store any custom data.
Name The Name property specifies the component name.
Tag The compiler does not use the Tag property. A user can change the value of the Tag property and use it as he wishes.

Methods inherited from IMenuItem

  Method name Brief description
The Click method initializes the OnClick event for this menu item.

Events

  Event name Brief description
The OnClick event occurs, if the user pressed the main mouse button when the mouse pointer was on the menu item.
The OnPopup event occurs immediately before the context menu appears.

See also:

Forms Assembly Classes