Skip to main content
All docs
V25.1
  • RichEditBarItemNames.UndoMenu Property

    Gets the Undo Menu item’s name.

    Namespace: DevExpress.Blazor.RichEdit

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

    NuGet Package: DevExpress.Blazor.RichEdit

    Declaration

    public static string UndoMenu { get; }

    Property Value

    Type Description
    String

    The “UndoMenu” string.

    Remarks

    Use this property to perform the following operations:

    The Undo Menu item is a drop-down menu that contains the following items:

    Redo
    The button allows users to redo the last operation.
    Undo
    The button allows users to undo the last operation.

    When a user clicks the Undo Menu, the Rich Text Editor undoes the last operation. Use the drop down‘s Click property to change this behavior.

    The following code snippet removes all items from the Undo/Clipboard group and adds the Undo Menu item to the group.

    <DxRichEdit CustomizeRibbon="onCustomizeRibbon" />
    
    @code {
        void OnCustomizeRibbon(IRibbon ribbon) {
            IRibbonTab homeTab = ribbon.Tabs[RichEditRibbonTabNames.Home];
            IBarGroup group = homeTab.Groups[RichEditRibbonGroupNames.HomeUndoClipboard];
            // Removes all items
            group.Items.Clear();
            // Adds the Undo Menu item
            group.Items.Add(RichEditBarItemNames.UndoMenu);
        }
    }
    
    See Also