blazor-devexpress-dot-blazor-dot-richedit-dot-richeditbaritemnames-eda963e8.md
Gets the Delete Table Elements Menu item’s name.
Namespace : DevExpress.Blazor.RichEdit
Assembly : DevExpress.Blazor.RichEdit.v25.2.dll
NuGet Package : DevExpress.Blazor.RichEdit
public static string DeleteTableElementsMenu { get; }
| Type | Description |
|---|---|
| String |
The “DeleteTableElementsMenu” string.
|
Use this property to perform the following operations:
The Delete Table Elements Menu item is a drop-down menu in the Rows and Columns group. This menu contains the following items:
Delete TableThe button deletes the selected table.Delete Table ColumnsThe button deletes the selected table columns.Delete Table RowsThe button deletes the selected table rows.Show Delete Cells DialogThe button invokes the Delete Cells dialog that allows users to delete a table cell, column, or row.
The following code snippet removes items from the Delete Table Elements Menu item:
<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