Skip to main content
All docs
V25.1
  • RichEditBarItemNames.ShowTableGridlines Property

    Gets the Show Table Gridlines item’s name.

    Namespace: DevExpress.Blazor.RichEdit

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

    NuGet Package: DevExpress.Blazor.RichEdit

    Declaration

    public static string ShowTableGridlines { get; }

    Property Value

    Type Description
    String

    The “ShowTableGridlines” string.

    Remarks

    Use this property to perform the following operations with the Show Table Gridlines item:

    The Show Table Gridlines item is a checkable button in the Table Borders Menu and Table group. This button toggles the visibility of table gridlines.

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

    <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