Back to Devexpress

RichEditBarItemNames.DeleteTableRows Property

blazor-devexpress-dot-blazor-dot-richedit-dot-richeditbaritemnames-88e75c72.md

latest2.9 KB
Original Source

RichEditBarItemNames.DeleteTableRows Property

Gets the Delete Table Rows item’s name.

Namespace : DevExpress.Blazor.RichEdit

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

NuGet Package : DevExpress.Blazor.RichEdit

Declaration

csharp
public static string DeleteTableRows { get; }

Property Value

TypeDescription
String

The “DeleteTableRows” string.

|

Remarks

Use this property to perform the following operations with the Delete Table Rows item:

The Delete Table Rows item is a button in the Delete Table Elements Menu. This button deletes the selected table rows.

The following code snippet removes the Delete Table Rows item from the Delete Table Elements Menu:

razor
<DxRichEdit CustomizeRibbon="onCustomizeRibbon" />

@code {
    void onCustomizeRibbon(IRibbon ribbon) {
        IBarItem deleteTableElementsMenu = ribbon.Tabs[RichEditRibbonTabNames.TableLayout]
        .Groups[RichEditRibbonGroupNames.LayoutRowsAndColumns]
        .Items[RichEditBarItemNames.DeleteTableElementsMenu];
        if (deleteTableElementsMenu.Type == BarItemTypes.DropDown) {
            IBarDropDown deleteTableElementsDropDown = (IBarDropDown)deleteTableElementsMenu;
            deleteTableElementsDropDown.Items.Remove(RichEditBarItemNames.DeleteTable);
            deleteTableElementsDropDown.Items.Remove(RichEditBarItemNames.DeleteTableColumns);
            deleteTableElementsDropDown.Items.Remove(RichEditBarItemNames.DeleteTableRows);
            deleteTableElementsDropDown.Items.Remove(RichEditBarItemNames.ShowDeleteCellsDialog);
        }
    }
}

See Also

RichEditBarItemNames Class

RichEditBarItemNames Members

DevExpress.Blazor.RichEdit Namespace