Back to Devexpress

RichEditBarItemNames.SelectTableElementsMenu Property

blazor-devexpress-dot-blazor-dot-richedit-dot-richeditbaritemnames-0c3e667e.md

latest3.3 KB
Original Source

RichEditBarItemNames.SelectTableElementsMenu Property

Gets the Select Table Elements 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 SelectTableElementsMenu { get; }

Property Value

TypeDescription
String

The “SelectTableElementsMenu” string.

|

Remarks

Use this property to perform the following operations:

The Select Table Elements Menu item is a drop-down menu in the Table group. This menu contains the following items:

Select TableThe button selects the entire table that contains the caret.Select Table CellThe button selects the cell that contains the caret.Select Table ColumnThe button selects columns that contain the selected cells.Select Table RowThe button selects rows that contain the selected cells.

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

razor
<DxRichEdit CustomizeRibbon="onCustomizeRibbon" />

@code {
    void onCustomizeRibbon(IRibbon ribbon) {
        IBarItem selectTableElementsMenu = ribbon.Tabs[RichEditRibbonTabNames.TableLayout]
        .Groups[RichEditRibbonGroupNames.LayoutTable]
        .Items[RichEditBarItemNames.SelectTableElementsMenu];
        if (selectTableElementsMenu.Type == BarItemTypes.DropDown) {
            IBarDropDown selectTableElementsDropDown = (IBarDropDown)selectTableElementsMenu;
            selectTableElementsDropDown.Items.Remove(RichEditBarItemNames.SelectTable);
            selectTableElementsDropDown.Items.Remove(RichEditBarItemNames.SelectTableCell);
            selectTableElementsDropDown.Items.Remove(RichEditBarItemNames.SelectTableColumn);
            selectTableElementsDropDown.Items.Remove(RichEditBarItemNames.SelectTableRow);
        }
    }
}

See Also

RichEditBarItemNames Class

RichEditBarItemNames Members

DevExpress.Blazor.RichEdit Namespace