ActiveReports 19 .NET Edition
MESCIUS.ActiveReports.Design.Win Assembly / GrapeCity.ActiveReports.Design Namespace / Designer Class / UndoManager Property
Example

In This Topic
    UndoManager Property
    In This Topic
    The UndoManager allows users to undo and redo changes.
    Syntax
    'Declaration
     
    Public ReadOnly Property UndoManager As UndoManager
    public UndoManager UndoManager {get;}

    Property Value

    The UndoManager that allows for the undoing and redoing of changes made in the designer.
    Remarks
    The UndoManager is a critical component of the designer's user experience, providing users with the ability to reverse actions or restore them if reversed unintentionally. This property exposes the undo manager associated with the current instance of the designer, enabling programmatic access to its functionality.

    Through the UndoManager, developers can programmatically trigger undo or redo operations, check the availability of such operations, and even integrate more complex undo/redo scenarios into their applications.

    Example
    private void mnuEditUndo_Click(object sender, System.EventArgs e)
    {
        this.ardMain.UndoManager.Undo();
    }
    'mnuEditUndo_Click - calls the UndoManager.Undo command from the Designer
    Private Sub mnuEditUndo_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles mnuEditUndo.Click
        Me.ardMain.UndoManager.Undo()
    End Sub 'mnuEditUndo_Click
    See Also