Spread Windows Forms 12.0 Product Documentation
Redo() Method
Example 


FarPoint.Win.Spread Assembly > FarPoint.Win.Spread.UndoRedo Namespace > UndoManager Class > Redo Method : Redo() Method
Redoes the last action undone with Undo and adds it to the undo list.
Syntax
'Declaration
 
Public Overloads Function Redo() As Boolean
'Usage
 
Dim instance As UndoManager
Dim value As Boolean
 
value = instance.Redo()
public bool Redo()

Return Value

True if successful
Example
This example uses the Redo 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
See Also

Reference

UndoManager Class
UndoManager Members
Overload List