Back to Devexpress

RichEditBarItemNames.TableBordersMenu Property

blazor-devexpress-dot-blazor-dot-richedit-dot-richeditbaritemnames-9a6be075.md

latest5.8 KB
Original Source

RichEditBarItemNames.TableBordersMenu Property

Gets the Table Borders Menu item’s name.

Namespace : DevExpress.Blazor.RichEdit

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

NuGet Package : DevExpress.Blazor.RichEdit

Declaration

csharp
public static string TableBordersMenu { get; }

Property Value

TypeDescription
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 GridlinesThe checkable button toggles visibility of table gridlines.Table Cell All BordersThe checkable button allows users to customize all the borders of the selected cells.Table Cell Bottom BorderThe checkable button allows users to customize the bottom borders of the selected cells.Table Cell Inside BordersThe checkable button allows users to customize the inside borders of the selected cells.Table Cell Inside Horizontal BordersThe checkable button allows users to customize the inside horizontal borders of the selected cells.Table Cell Inside Vertical BordersThe checkable button allows users to customize the inside vertical borders of the selected cells.Table Cell Left BorderThe checkable button allows users to customize the left borders of the selected cells.Table Cell No BorderThe button hides all the borders of the selected cells.Table Cell Outside BordersThe checkable button allows users to customize the outside borders of the selected cells.Table Cell Right BorderThe checkable button allows users to customize the right borders of the selected cells.Table Cell Top BorderThe 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:

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

RichEditBarItemNames Class

RichEditBarItemNames Members

DevExpress.Blazor.RichEdit Namespace