The IMenuItem interface contains properties and methods of the menu element.
The interface describes elements of the MainMenu and PopupMenu components. Elements collections are returned by the Items properties.
| Property name | Brief description | |
![]() |
Action | The Action property determines the action that is associated with the menu item. |
![]() |
AdditionalShortCuts | The AdditionalShortCuts property returns the collection of additional combinations of hot keys that are connected with this menu item. |
![]() |
AutoCheck | The AutoCheck property determines whether the state of checkbox should be changed automatically when the menu item is selected. |
![]() |
Checked | The Checked property determines a state of the checkbox displayed to the left of the menu item. |
![]() |
CloseOnCommand | The CloseOnCommand property determines whether menu closes after selection of this menu item. |
![]() |
DefaultItem | The DefaultItem property determines whether it is possible to execute this menu item by default when the user double-clicks on the parent submenu. |
![]() |
Enabled | The Enabled property determines whether the menu item is enabled for the user. |
![]() |
GroupIndex | The GroupIndex property sets index of the menu items group. |
![]() |
ImageIndex | The ImageIndex property determines index of the image that is displayed in the menu item. |
![]() |
IsCaption | The IsCaption property determines whether the current element is a caption. |
![]() |
Items | The Items property returns the collection of submenus of this menu item. |
![]() |
RadioItem | The RadioItem property determines whether the radio button should be used to specify the selected item. |
![]() |
ShortCut | The ShortCut property determines combination of hot keys for quick selection of menu item. |
![]() |
Text | The Text property determines the line identifying a component for the user. |
![]() |
Visible | The Visible property determines whether the menu item is visible during form execution. |
| Property name | Brief description | |
![]() |
ComponentCount | The ComponentCount property returns the number of child components located on the parent component. |
![]() |
Components | The Components property returns the child component, which index is passed by the input parameter. |
![]() |
Data | The Data property is used to store any custom data. |
![]() |
Name | The Name property determines a component name. |
![]() |
Tag | The compiler does not use the Tag property. The user can change the value of the Tag property and use it as he wishes. |
| Method name | Brief description | |
![]() |
Click | The Click method initializes the OnClick event for this menu item. |
See also: