Skip to main content
All docs
V25.1
  • IRibbonTab Interface

    A tab on the Rich Text Editor‘s ribbon.

    Namespace: DevExpress.Blazor.Office

    Assembly: DevExpress.Blazor.v25.1.dll

    NuGet Package: DevExpress.Blazor

    Declaration

    public interface IRibbonTab :
        IBarItemBase

    Remarks

    The Rich Text Editor displays the built-in ribbon that consists of multiple tabs. The IRibbonTab interface defines an individual ribbon tab. Use the interface properties to change the tab’s visibility and appearance.

    The following code snippet customizes the Layout tab.

    <DxRichEdit CustomizeRibbon=OnCustomizeRibbon />
    
    @code {
        void OnCustomizeRibbon(IRibbon ribbon) {
            IRibbonTab tableTab = ribbon.Tabs[RichEditRibbonTabNames.TableLayout];
            tableTab.Text = "Table";
            tableTab.GetVisible = () => true;
            tableTab.Groups.AddCustomGroup(0).Items.Add(RichEditBarItemNames.ShowInsertTableDialog);
        }
    }
    

    Run Demo: Ribbon Customization

    See Also