UndoEdit

Forms, interaction, edit history

Description

Reverses the latest retained change in the active form-field edit and restores its previous value, display value, anchor and caret

History replay does not redispatch /K, /V or /F actions and does not invoke OnTextEdit or change the document field

The restored transient value is written to the PDF only after a later successful CommitEdit

Declaration

function UndoEdit: Integer;

Return value

Returns 1 when one history entry is reversed, otherwise 0

Example

if Session.CanUndoEdit then
  Session.UndoEdit;

See also

RedoEdit, CanUndoEdit, ClearEditHistory, TPDFlibFormSession