API Help
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 (ContextMenu)
    In This Topic
    Adds a new menu item at the end of a context menu.
    Syntax

    Parameters

    contextMenuLocation
    This is the identifier of the context menu where the new menu should inserted at.
    strMenuName
    The name of the menu to be added.
    strActionName
    Name of the Eplan.EplApi.ApplicationFramework.Action to be performed when the menu item is selected. Also its parameters can be passed here.
    bSeparatorBefore
    when true, a new separator is added before the menu item is added.
    bSeparatorBehind
    when 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