Back to Devexpress

IRibbon Interface

blazor-devexpress-dot-blazor-dot-office.md

latest1.5 KB
Original Source

IRibbon Interface

The built-in ribbon for the Rich Text Editor.

Namespace : DevExpress.Blazor.Office

Assembly : DevExpress.Blazor.v25.2.dll

NuGet Package : DevExpress.Blazor

Declaration

csharp
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.

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

IRibbon Members

DevExpress.Blazor.Office Namespace