Spread Windows Forms 7.0 Product Documentation
Redo() Method
See Also  Example Support Options
FarPoint.Win.Spread Assembly > FarPoint.Win.Spread.UndoRedo Namespace > UndoManager Class > Redo Method : Redo() Method


Glossary Item Box

Redoes the last action undone with Undo and adds it to the undo list.

Syntax

Visual Basic (Declaration) 
Public Overloads Function Redo() As Boolean
Visual Basic (Usage)Copy Code
Dim instance As UndoManager
Dim value As Boolean
 
value = instance.Redo()
C# 
public bool Redo()

Return Value

True if successful

Example

This example uses the Redo method.
C#Copy Code
//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();
        }
VB.NETCopy Code
'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 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8

See Also

© 2002-2014 ComponentOne, a division of GrapeCity. All Rights Reserved.