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

RichEditRibbonContextTabType Class

Contains types of context tabs.

Namespace: DevExpress.Blazor.RichEdit

Assembly: DevExpress.Blazor.RichEdit.v24.2.dll

NuGet Package: DevExpress.Blazor.RichEdit

#Declaration

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

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