Eplan Platform API
Eplan.EplApi.Gui Namespace / ContextMenu Class / AddMenuItem Method
This is the identifier of the context menu where the new menu should inserted at.
The name of the menu to be added.
Name of the Eplan.EplApi.ApplicationFramework.Action to be performed when the menu item is selected. Also its parameters can be passed here.
when true, a new separator is added before the menu item is added.
when true, a new separator is added behind the new menu item.

In This Topic
    AddMenuItem Method
    In This Topic
    Adds a new menu item at the end of a context menu.
    Syntax

    Parameters

    Parameter NameDescription
    contextMenuLocationThis is the identifier of the context menu where the new menu should inserted at.
    strMenuNameThe name of the menu to be added.
    strActionNameName of the Eplan.EplApi.ApplicationFramework.Action to be performed when the menu item is selected. Also its parameters can be passed here.
    bSeparatorBeforewhen true, a new separator is added before the menu item is added.
    bSeparatorBehindwhen true, a new separator is added behind the new menu item.

    Return Value

    true when an item was added. Returns false when this menu item already exists.
    See Also