public uint AddMenuItem( string strText, string strActionName, string strStatusText, uint nCommandId, int nInsertPosition, bool bSeparatorBefore, bool bSeparatorBehind )
public: uint AddMenuItem( String^ strText, String^ strActionName, String^ strStatusText, uint nCommandId, int nInsertPosition, bool bSeparatorBefore, bool bSeparatorBehind )
Parameters
- strText
- Text of the new menu item.
- strActionName
- Name of the Eplan.EplApi.ApplicationFramework.Action to be performed when the menu item is selected. Also its parameters can be passed here.
- strStatusText
- Text shown in the status bar when menu is selected.
- nCommandId
- The menu id to insert the new one before.
- nInsertPosition
- The count of menus to step over before inserting. 0 inserts before, 1 inserts behind, MaxValue at end, MinValue at beginning
- bSeparatorBefore
- Add a Separator before the new insert menu
- bSeparatorBehind
- Add a Separator behind the new insert menu
Return Value
The identifying command ID of the added menu item. Is valid as long as the application runs. Can be used to add another menu before/behind.