Back to Devexpress

RichEditRibbonContextTabType Class

blazor-devexpress-dot-blazor-dot-richedit-085787fb.md

latest2.0 KB
Original Source

RichEditRibbonContextTabType Class

Contains types of context tabs.

Namespace : DevExpress.Blazor.RichEdit

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

NuGet Package : DevExpress.Blazor.RichEdit

Declaration

csharp
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

RichEditRibbonContextTabType Members

DevExpress.Blazor.RichEdit Namespace