CanUndoEdit

Forms, interaction, edit history

Description

Reports whether the active TPDFlibFormSession edit has a retained history entry that UndoEdit can reverse

The result is False while no edit is active or the session is processing an edit, history replay or commit

Declaration

function CanUndoEdit: Boolean;

Return value

Returns True when at least one retained edit can be undone, otherwise False

Example

UndoButton.Enabled := Session.CanUndoEdit;

See also

UndoEdit, CanRedoEdit, TPDFlibFormSession