This method reverses an undo step.

[Visual Basic] Public Function Redo() As Boolean
[C#] public bool Redo();

Parameters

None

Return Value

Returns True if successful, otherwise returns False.

Explanation

The Redo method reverses an undo step (the result of executing the Undo method or of choosing "Undo" in the context menu) and returns the annotation objects to the state prior to that undo. Reversing an undo step is called a "redo step". You can perform the same number of redo steps as undo steps.

If after several undo steps and redo steps, a new change is made to the annotation objects, the remaining redo steps cannot be performed. (see example below)

The CanRedoCount property can be used to retrieve the number of possible redos remaining. Executing the ClearEditHistory method resets the Undo/Redo count to zero.

To perform the same function as executing this method, right click the object and display the context menu then select "Redo". For more details about the context menu, please refer to ContextMenuEnabled property.

Example:
Suppose you have made 5 annotation changes in a row (State1 --> State2 --> State3 --> State4 --> State5)

You perform 4 undo steps either by executing the Undo method or by choosing the "Undo" item in the context menu. You are now at State1.

You now execute the Redo method 2 times putting you at State3.

Next you draw a new object (State6).

At this point State4 and State5 are unretrievable. The undo/redo steps will pass through the following states: State1 --> State2 --> State3 --> State6.

See also

ImageKit.Edit Members | Newtone.ImageKit.Win.ImageKit

 

The ImageKit.NET3 is created by Newtone Corporation