CancelEdit

Forms, interaction, edit history

Description

TPDFlibFormSession

DisplayValue edit without writing anything to the field OriginalValue is restored to

Declaration

procedure CancelEdit;

Example

if Session.BeginEdit(FieldIndex) = 1 then
begin
  Session.PasteText('draft');
  Session.CancelEdit;
end;

See also

CommitEdit, BeginEdit, Blur, ClearEditState, ClearEditHistory, EditValue, OriginalValue, TPDFlibFormSession