API Help
Eplan.EplApi.Gui Namespace / Menu Class / AddMainMenu Method / AddMainMenu(String,MainMenuName,String,String,String,Int32) Method
Text of the new main menu.
This is the enum of the main menu where the new menu should inserted at.
The name of the first menu in this main menu.
Name of the Eplan.EplApi.ApplicationFramework.Action to be performed when the menu item is selected. Also its parameters can be passed here. Must be unique within menu.
Text shown in the status bar when menu is selected.
The count of main menus to step over before inserting. 0 inserts before, 1 inserts behind, MaxValue at end, MinValue at beginning

In This Topic
    AddMainMenu(String,MainMenuName,String,String,String,Int32) Method
    In This Topic
    Adds a new main menu with the first menu item.
    Syntax

    Parameters

    strMainMenuText
    Text of the new main menu.
    eMainMenuReferenceName
    This is the enum of the main menu where the new menu should inserted at.
    strMenuName
    The name of the first menu in this main menu.
    strActionName
    Name of the Eplan.EplApi.ApplicationFramework.Action to be performed when the menu item is selected. Also its parameters can be passed here. Must be unique within menu.
    strStatusText
    Text shown in the status bar when menu is selected.
    nInsertPosition
    The count of main menus to step over before inserting. 0 inserts before, 1 inserts behind, MaxValue at end, MinValue at beginning

    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.
    Exceptions
    ExceptionDescription
    Thrown in case of wrong parameters, for example strActionName
    See Also