Implements

Methods

  • Add a RibbonElement element to the current panel.

    Parameters

    Returns Promise<null | RibbonElementType>

    const parentWnd = await LPVOID.create();
    const ribbonBar = await app.getRibbonBar(parentWnd);
    const ribbonCategory = await ribbonBar.addCategory('categoryName', 'categoryTitle');
    const ribbonPanel = await ribbonCategory.addPanel('panelName', 'panelTitle', btnBitmap);
    const ribbonElement = await ribbonPanel.addElement({
    elementType: FR_Ribbon_Element_Type.FR_RIBBON_BUTTON,
    name: 'TestDropButton',
    title: 'TestDropButton',
    pos: -1
    });
  • Get the element object by index.

    Parameters

    • index: number

      The index of the element. This value can be iterated through from getElementCount.

    Returns Promise<null | RibbonElementType>

    Get the specified element object.

  • Get the number of elements in the panel.

    Returns Promise<number>

    The number of elements in the panel.

  • Get the name of the panel.

    Returns Promise<string>

    The name of the panel.