blazor-devexpress-dot-blazor-dot-richedit-dot-richeditbaritemnames-222f2ef1.md
Gets the Insert 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 InsertTableElementsMenu { get; }
| Type | Description |
|---|---|
| String |
The “InsertTableElementsMenu” string.
|
Use this property to perform the following operations:
The Insert Table Elements Menu item is a drop-down menu in the Rows and Columns group. This menu contains the following items:
Insert Table Column to the LeftThe button inserts a column to the left of the selected column.Insert Table Column to the RightThe button inserts a column to the right of the selected column.Insert Table Row AboveThe button inserts a row above the selected row.Insert Table Row BelowThe button inserts a row below the selected row.
The following code snippet removes items from the Insert Table Elements Menu item:
<DxRichEdit CustomizeRibbon="onCustomizeRibbon" />
@code {
void onCustomizeRibbon(IRibbon ribbon) {
IBarItem insertTableElementsMenu = ribbon.Tabs[RichEditRibbonTabNames.TableLayout]
.Groups[RichEditRibbonGroupNames.LayoutRowsAndColumns]
.Items[RichEditBarItemNames.InsertTableElementsMenu];
if (insertTableElementsMenu.Type == BarItemTypes.DropDown) {
IBarDropDown insertTableElementsDropDown = (IBarDropDown)insertTableElementsMenu;
insertTableElementsDropDown.Items.Remove(RichEditBarItemNames.InsertTableColumnToTheLeft);
insertTableElementsDropDown.Items.Remove(RichEditBarItemNames.InsertTableColumnToTheRight);
insertTableElementsDropDown.Items.Remove(RichEditBarItemNames.InsertTableRowAbove);
insertTableElementsDropDown.Items.Remove(RichEditBarItemNames.InsertTableRowBelow);
}
}
}
See Also