Skip to main content
A newer version of this page is available. .

IRibbon Interface

The built-in ribbon for the Rich Text Editor.

Namespace: DevExpress.Blazor.Office

Assembly: DevExpress.Blazor.v22.1.dll

NuGet Package: DevExpress.Blazor

Declaration

public interface IRibbon

Remarks

The IRibbon interface defines the Rich Text Editor‘s built-in ribbon. Use this interface in the CustomizeRibbon event.

The interface’s Tabs property allows you to access the ribbon’s tab collection. You can obtain an individual tab by its name or index.

<DxRichEdit CustomizeRibbon=OnCustomizeRibbon />

@code {
    void OnCustomizeRibbon(IRibbon ribbon) {
        // Returns the tab with the index 0
        IRibbonTab firstTab = ribbon.Tabs[0];
        // Returns the Layout tab
        IRibbonTab tableTab = ribbon.Tabs[RichEditRibbonTabNames.TableLayout];
    }
}

Run Demo: Ribbon Customization

See Also