Skip to main content
All docs
V25.1
  • RichEditRibbonContextTabType Class

    Contains types of context tabs.

    Namespace: DevExpress.Blazor.RichEdit

    Assembly: DevExpress.Blazor.RichEdit.v25.1.dll

    NuGet Package: DevExpress.Blazor.RichEdit

    Declaration

    public static class RichEditRibbonContextTabType

    Remarks

    A context tab is a hidden tab that appears after a user selects one of the following objects:

    • Header or footer
    • Image or text box
    • Table

    Pass the RichEditRibbonContextTabType class’s property to an AddCustomTab method overload to create a custom context tab. The following code snippet creates a custom tab that appears after a user selects a table:

    <DxRichEdit CustomizeRibbon=OnCustomizeRibbon />
    
    @code {
        void OnCustomizeRibbon(IRibbon ribbon) {
            IRibbonTab tableTab = ribbon.Tabs.AddCustomTab("Table", RichEditRibbonContextTabType.Table);
            tableTab.Groups.Add(RichEditRibbonGroupNames.LayoutRowsAndColumns);
            tableTab.Groups.Add(RichEditRibbonGroupNames.DesignBordersAndShadings);
        }
    }
    

    You cannot create a custom context tab type or change the type of an existing tab. Use a tab’s GetVisible property to change the display criteria for this tab.

    Inheritance

    Object
    RichEditRibbonContextTabType
    See Also