Skip to main content
All docs
V25.1
  • HtmlEditorToolbarGroupNames.UndoRedo Property

    Gets the name of the Undo/Redo group.

    Namespace: DevExpress.Blazor

    Assembly: DevExpress.Blazor.v25.1.dll

    NuGet Package: DevExpress.Blazor

    Declaration

    public static string UndoRedo { get; }

    Property Value

    Type Description
    String

    The “UndoRedo” string.

    Remarks

    The Undo/Redo group in the HtmlEditor‘s toolbar includes the following items:

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

    Html Editor - Toolbar UndoRedo Group

    Use the UndoRedo property to perform the following operations:

    The following code snippet removes all items from the toolbar’s Undo/Redo group:

    <DxHtmlEditor Width="100%"
                  Height="200px"
                  CustomizeToolbar="@OnCustomizeToolbar"/>
    
    @code {
        void OnCustomizeToolbar(IToolbar toolbar) {
            IBarGroup undoRedoGroup = toolbar.Groups[HtmlEditorToolbarGroupNames.UndoRedo];
            undoRedoGroup.Items.Clear();
        }
    }
    
    See Also