Skip to main content

RichEditBarItemNames.TableBordersMenu Property

Gets the Table Borders Menu item’s name.

Namespace: DevExpress.Blazor.RichEdit

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

NuGet Package: DevExpress.Blazor.RichEdit

Declaration

public static string TableBordersMenu { get; }

Property Value

Type Description
String

The “TableBordersMenu” string.

Remarks

Use this property to perform the following operations:

The Table Borders Menu item is a drop-down menu in the Borders and Shadings group. This menu contains the following items:

Show Table Gridlines
The checkable button toggles visibility of table gridlines.
Table Cell All Borders
The checkable button allows users to customize all the borders of the selected cells.
Table Cell Bottom Border
The checkable button allows users to customize the bottom borders of the selected cells.
Table Cell Inside Borders
The checkable button allows users to customize the inside borders of the selected cells.
Table Cell Inside Horizontal Borders
The checkable button allows users to customize the inside horizontal borders of the selected cells.
Table Cell Inside Vertical Borders
The checkable button allows users to customize the inside vertical borders of the selected cells.
Table Cell Left Border
The checkable button allows users to customize the left borders of the selected cells.
Table Cell No Border
The button hides all the borders of the selected cells.
Table Cell Outside Borders
The checkable button allows users to customize the outside borders of the selected cells.
Table Cell Right Border
The checkable button allows users to customize the right borders of the selected cells.
Table Cell Top Border
The checkable button allows users to customize the top borders of the selected cells.

The following code snippet removes items from the Table Borders Menu item:

<DxRichEdit CustomizeRibbon="onCustomizeRibbon" />

@code {
    void onCustomizeRibbon(IRibbon ribbon) {
        IBarItem tableBordersMenu = ribbon.Tabs[RichEditRibbonTabNames.TableDesign].Groups[RichEditRibbonGroupNames.DesignBordersAndShadings].Items[RichEditBarItemNames.TableBordersMenu];
        if (tableBordersMenu.Type == BarItemTypes.DropDown) {
            IBarDropDown tableBordersDropDown = (IBarDropDown)tableBordersMenu;
            tableBordersDropDown.Items.Remove(RichEditBarItemNames.ShowTableGridlines);
            tableBordersDropDown.Items.Remove(RichEditBarItemNames.TableCellAllBorders);
            tableBordersDropDown.Items.Remove(RichEditBarItemNames.TableCellBottomBorder);
            tableBordersDropDown.Items.Remove(RichEditBarItemNames.TableCellInsideBorders);
            tableBordersDropDown.Items.Remove(RichEditBarItemNames.TableCellInsideHorizontalBorders);
            tableBordersDropDown.Items.Remove(RichEditBarItemNames.TableCellInsideVerticalBorders);
            tableBordersDropDown.Items.Remove(RichEditBarItemNames.TableCellLeftBorder);
            tableBordersDropDown.Items.Remove(RichEditBarItemNames.TableCellNoBorder);
            tableBordersDropDown.Items.Remove(RichEditBarItemNames.TableCellOutsideBorders);
            tableBordersDropDown.Items.Remove(RichEditBarItemNames.TableCellRightBorder);
            tableBordersDropDown.Items.Remove(RichEditBarItemNames.TableCellTopBorder);
        }
    }
}
See Also