PDFiumVCL 文件

FormCanRedo method

此 API 條目保留識別符號、簽名、程式碼塊和 PDF 術語的原始形式。
Component: TPdfView  ·  Unit: PDFium
Reports whether the focused AcroForm widget has at least one undone edit to redo.

Syntax

function FormCanRedo: Boolean;

Description

FormCanRedo wraps PDFium's FORM_CanRedo. It returns True when the FOCUSED AcroForm widget has at least one undone edit in its redo stack that FormRedo could re-apply, and False otherwise.

Returns False safely when the view is inactive, the document has no AcroForm, or no widget is focused.

Making a fresh edit (typing, paste, etc.) clears the redo stack — FormCanRedo flips to False after the next edit. This matches the standard text-editor convention.

Remarks

Example

if PdfView1.FormCanRedo then
  PdfView1.FormRedo
else
  Beep;

See Also

FormRedo, FormCanUndo, FormUndo