Description
Restores the edit that was previously undone in a RichTextEdit control.
Applies to
RichTextEdit controls
Syntax
rtename.Redo ( )
Argument |
Description |
---|---|
rtename |
The name of the RichTextEdit control in which you want to restore the edit that was previously undone |
Return value
Integer.
Returns 1 if it succeeds and -1 if an error occurs.
Usage
To determine whether the edit that was previously undone can be restored, call the CanRedo function.
Examples
The following statement checks to see if the edit in the RichTextEdit rte_1 that was previously undone can be restored, and if so restore it:
IF rte_1.CanRedo() THEN rte_1.Redo()
See also