API Help
Eplan.EplApi.Gui Namespace / ContextMenu Class
Members Example

In This Topic
    ContextMenu Class
    In This Topic
    Class for modifying context menus. Add-ins can add new context menu items to the EPLAN context menu. A menu item is connected to an Eplan.EplApi.ApplicationFramework.Action.
    Inheritance Hierarchy

    System.Object
       Eplan.EplApi.Gui.ContextMenu

    Syntax
    public class ContextMenu 
    public ref class ContextMenu 
    Example
    Example creating a contextmenu:
    ContextMenuLocation oLocation = new ContextMenuLocation();
    oLocation.DialogName = "Editor";
    oLocation.ContextMenuName = "Ged";
    ContextMenu oTestMenu = new ContextMenu();
    oTestMenu.AddMenuItem(oLocation, "My Contextmenuname",
    	"MyFavoriteActionName", true, false));
    Public Constructors
     NameDescription
    Public ConstructorCreates a new object.  
    Top
    Public Methods
     NameDescription
    Public MethodAdds a new menu item at the end of a context menu.  
    Public MethodGet the menu item of a context menu from the index.  
    Public MethodGet the count of added menu items of a context menu.  
    Public MethodOverloaded. Remove the menu item of a context menu.  
    Top
    See Also