Back to Devexpress

HtmlEditorToolbarGroupNames.UndoRedo Property

blazor-devexpress-dot-blazor-dot-htmleditortoolbargroupnames-d5d10866.md

latest2.2 KB
Original Source

HtmlEditorToolbarGroupNames.UndoRedo Property

Gets the name of the Undo/Redo group.

Namespace : DevExpress.Blazor

Assembly : DevExpress.Blazor.v25.2.dll

NuGet Package : DevExpress.Blazor

Declaration

csharp
public static string UndoRedo { get; }

Property Value

TypeDescription
String

The “UndoRedo” string.

|

Remarks

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

UndoThe button allows users to undo the last operation.RedoThe button allows users to redo the last operation.

Use the UndoRedo property to perform the following operations:

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

razor
<DxHtmlEditor Width="100%"
              Height="200px"
              CustomizeToolbar="@OnCustomizeToolbar"/>

@code {
    void OnCustomizeToolbar(IToolbar toolbar) {
        IBarGroup undoRedoGroup = toolbar.Groups[HtmlEditorToolbarGroupNames.UndoRedo];
        undoRedoGroup.Items.Clear();
    }
}

See Also

HtmlEditorToolbarGroupNames Class

HtmlEditorToolbarGroupNames Members

DevExpress.Blazor Namespace