Back to Devexpress

RichEditBarItemNames.TableCellOutsideBorders Property

blazor-devexpress-dot-blazor-dot-richedit-dot-richeditbaritemnames-46f347ad.md

latest3.9 KB
Original Source

RichEditBarItemNames.TableCellOutsideBorders Property

Gets the Table Cell Outside Borders item’s name.

Namespace : DevExpress.Blazor.RichEdit

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

NuGet Package : DevExpress.Blazor.RichEdit

Declaration

csharp
public static string TableCellOutsideBorders { get; }

Property Value

TypeDescription
String

The “TableCellOutsideBorders” string.

|

Remarks

Use this property to perform the following operations with the Table Cell Outside Borders item:

The Table Cell Outside Borders item is a checkable button in the Table Borders Menu. Check this button to apply the border color, style, and width settings to the outside borders of the selected cells and display these borders. Uncheck the button to hide the outside borders of the selected cells.

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

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