RedoEdit

Forms, interaction, edit history

Description

Replays the next retained change in the active form-field edit and restores its resulting value, display value, anchor and caret

Redo history remains available after undo operations until a new accepted edit discards the redo branch or the edit history is cleared

History replay does not redispatch form actions or host edit callbacks and does not change the document field

Declaration

function RedoEdit: Integer;

Return value

Returns 1 when one history entry is replayed, otherwise 0

Example

if Session.CanRedoEdit then
  Session.RedoEdit;

See also

UndoEdit, CanRedoEdit, ClearEditHistory, TPDFlibFormSession