Methods
| Definition | Description |
|---|---|
| AppendItem( commandId : TCommandID, text : string ) : IMenuItem | Appends a menu item with the command identifier commandId and the text text at the end of the menu. Returns the IMenuItem object of the corresponding element. Any command identifiers from the TCommandID enumeration may be used (including CI_SubMenu and CI_Separator), except for CI_Undefined. For CI_Separator, the text parameter is ignored. |
| Delete( index : int ) | Deletes an element by its index in the collection. |
| Find( commandId : TCommandID ) : int | Searches for the index of the first item with the specified command identifier in the collection. |
| InsertItem( index : int, commandId : TCommandID, text : string ) : IMenuItem | Inserts a menu item with the command identifier commandId and the text text at position index of the menu. Returns the IMenuItem object of the corresponding element. Any command identifiers from the TCommandID enumeration may be used (including CI_SubMenu and CI_Separator), except for CI_Undefined. For CI_Separator, the text parameter is ignored. |
