Eplan Platform API
Eplan.EplApi.Gui Namespace / RibbonBar Class
Members Example

In This Topic
    RibbonBar Class
    In This Topic
    Represents ribbon bar control.
    Inheritance Hierarchy

    System.Object
       Eplan.EplApi.Gui.RibbonBar

    Syntax
    public class RibbonBar 
    public ref class RibbonBar 
    Remarks
    The RibbonBar represents the whole ribbon bar control. All elements belonging to it are accessible through RibbonBar class. They are represented by classes RibbonTab, RibbonCommandGroup and RibbonCommand. For more information, please refer to "Ribbon bar" chapter of API Help or "The New Ribbon" chapter of Eplan Platform Help.
    Example
    Example of adding a command to the last position of the ribbon
    RibbonBar ribbonBar = new RibbonBar();
    ribbonBar.AddCommand("New ribbon button text", "XPartsManagementStart", 2);
    Example of adding a tab, command group and a command
    var newTab = new Eplan.EplApi.Gui.RibbonBar().AddTab("New API tab");
    var commandGroup = newTab.AddCommandGroup("New API command group");
    var command = commandGroup.AddCommand("New API command", "XPartsManagementStart");
    Public Constructors
     NameDescription
    Public ConstructorDefault constructor.  
    Top
    Public Properties
     NameDescription
    Public PropertyReturns active tab  
    Public PropertyReturns icons of the ribbon bar  
    Public PropertyReturns tabs of the ribbon bar  
    Top
    Public Methods
     NameDescription
    Public MethodOverloaded. Adds command to the ribbon  
    Public MethodAdds new icon to the ribbon bar  
    Public MethodOverloaded. Adds a new tab to the ribbon  
    Public MethodDestructor for deterministic finalization of MainRibbon object.  
    Public MethodReturns default tab  
    Public MethodOverloaded. Returns tab by name, multilanguage  
    Public MethodRemoves command from Extensions->API group  
    Top
    See Also