Back to Devexpress

IRibbonTab Interface

blazor-devexpress-dot-blazor-dot-office-03e81dde.md

latest2.1 KB
Original Source

IRibbonTab Interface

A tab on the Rich Text Editor‘s ribbon.

Namespace : DevExpress.Blazor.Office

Assembly : DevExpress.Blazor.v25.2.dll

NuGet Package : DevExpress.Blazor

Declaration

csharp
public interface IRibbonTab :
    IBarItemBase

The following members return IRibbonTab objects:

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

IRibbonTab Members

DevExpress.Blazor.Office Namespace