Spread Windows Forms 10.0 Product Documentation
Undo() Method
Example 


Undoes the last action done with PerformUndoAction and adds it to the redo list.
Syntax
'Declaration
 
Public Overloads Function Undo() As Boolean
'Usage
 
Dim instance As UndoManager
Dim value As Boolean
 
value = instance.Undo()
public bool Undo()
Example
This example uses the Undo method.
//Type in a cell, then click the undo and redo buttons
private void button1_Click(object sender, EventArgs e)
        {
           fpSpread1.UndoManager.Undo();
            
        }

private void button2_Click(object sender, EventArgs e)
        {
            
            fpSpread1.UndoManager.Redo();
        }
'Type in a cell, then click the undo and redo buttons
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        FpSpread1.UndoManager.Undo()
    End Sub

    Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
        FpSpread1.UndoManager.Redo()
    End Sub
Requirements

Target Platforms: Windows 2000 Professional (SP4), Windows 2000 Server, Windows 2003 Server (SP1), Windows Server 2012 R2, Windows 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8, Windows 8.1, Windows 10

See Also

Reference

UndoManager Class
UndoManager Members
Overload List

 

 


Copyright © GrapeCity, inc. All rights reserved.