Back to Devexpress

RichEditToolbarGroupNames.Undo Property

blazor-devexpress-dot-blazor-dot-richedit-dot-richedittoolbargroupnames-5d0c646b.md

latest2.4 KB
Original Source

RichEditToolbarGroupNames.Undo Property

Gets the name of the toolbar’s Undo group.

Namespace : DevExpress.Blazor.RichEdit

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

NuGet Package : DevExpress.Blazor.RichEdit

Declaration

csharp
public static string Undo { get; }

Property Value

TypeDescription
String

The “Undo” string.

|

Remarks

The Rich Text Editor’s toolbar consists of multiple groups. The Undo group includes the following items:

RedoThe button redoes the last operation.UndoThe button undoes the last operation.

Use the Undo property to perform the following operations:

The following code snippet removes the Redo item from the toolbar.

razor
<DxRichEdit CustomizeToolbar="onCustomizeToolbar"
            BarMode=BarMode.Toolbar/>

@code {
    void onCustomizeToolbar(IToolbar toolbar) {
        string groupName = RichEditToolbarGroupNames.Undo;
        string itemName = RichEditBarItemNames.Redo;
        toolbar.Groups[groupName].Items.Remove(itemName);
    }
}

See Also

RichEditToolbarGroupNames Class

RichEditToolbarGroupNames Members

DevExpress.Blazor.RichEdit Namespace