Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

IRibbonTab Interface

A tab on the Rich Text Editor‘s ribbon.

Namespace: DevExpress.Blazor.Office

Assembly: DevExpress.Blazor.v24.2.dll

NuGet Package: DevExpress.Blazor

#Declaration

C#
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.

Razor
<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