menu

Blazor

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class EditorHistoryModule - Blazor API Reference | Syncfusion

    Show / Hide Table of Contents

    Class EditorHistoryModule

    Represents the editor history module in DocumentEditor.

    Inheritance
    System.Object
    EditorHistoryModule
    Namespace: Syncfusion.Blazor.DocumentEditor
    Assembly: Syncfusion.Blazor.DocumentEditor.dll
    Syntax
    public class EditorHistoryModule : Object

    Constructors

    EditorHistoryModule(SfDocumentEditor)

    Initializes a new instance of the EditorHistoryModule class. Default constructor for EditorHistory.

    Declaration
    public EditorHistoryModule(SfDocumentEditor baseComponent)
    Parameters
    Type Name Description
    SfDocumentEditor baseComponent

    An DocumentEdiorComponent instance.

    Properties

    DocumentEditor

    DocumentEdiorComponent instance.

    Declaration
    protected SfDocumentEditor DocumentEditor { get; set; }
    Property Value
    Type
    SfDocumentEditor

    Methods

    BeginUndoActionAsync()

    Starts a new undoable action.

    Declaration
    public Task BeginUndoActionAsync()
    Returns
    Type Description
    System.Threading.Tasks.Task

    Returns an asynchronous operation.

    Remarks

    All editing and formatting changes made between BeginUndoActionAsync and EndUndoActionAsync will be grouped together as a single undoable action.

    CanRedoAsync()

    Check if redo operation can be done.

    Declaration
    public Task<bool> CanRedoAsync()
    Returns
    Type Description
    System.Threading.Tasks.Task<System.Boolean>

    Returns an asynchronous operation.

    CanUndoAsync()

    Check if redo operation can be done.

    Declaration
    public Task<bool> CanUndoAsync()
    Returns
    Type Description
    System.Threading.Tasks.Task<System.Boolean>

    Returns an asynchronous operation.

    EndUndoActionAsync()

    Ends the current undoable action.

    Declaration
    public Task EndUndoActionAsync()
    Returns
    Type Description
    System.Threading.Tasks.Task

    Returns an asynchronous operation.

    Remarks

    All editing and formatting changes made between BeginUndoActionAsync and EndUndoActionAsync will be grouped together as a single undoable action.

    GetRedoLimitAsync()

    Gets the limit of redo operations can be done.

    Declaration
    public Task<int> GetRedoLimitAsync()
    Returns
    Type Description
    System.Threading.Tasks.Task<System.Int32>

    Returns an asynchronous operation.

    RedoAsync()

    Performs the last reverted action.

    Declaration
    public Task RedoAsync()
    Returns
    Type Description
    System.Threading.Tasks.Task

    Returns an asynchronous operation.

    SetRedoLimitAsync(Int32)

    Sets the limit of redo operations can be done.

    Declaration
    public void SetRedoLimitAsync(int value)
    Parameters
    Type Name Description
    System.Int32 value

    Redo limit value.

    UndoAsync()

    Reverts the last editing action.

    Declaration
    public Task UndoAsync()
    Returns
    Type Description
    System.Threading.Tasks.Task

    Returns an asynchronous operation.

    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved