PDFium Delphi Component 文件

FormFieldTabOrder 方法

组件: TPdf  ·  单元: PDFium
用于当前页 AcroForm 逻辑字段焦点游标,适合键盘、语音和辅助功能流程

Syntax

function FormFieldTabOrder: TPdfIntegerArray;

Return Value

TPdfIntegerArray。按 PDFium tab 顺序排列的当前页控件索引

Description

表单焦点成员在当前页面的 AcroForm 控件注释上维护一个逻辑游标。该游标遵循 FormFieldTabOrder,当没有当前页字段被聚焦时返回 -1

当应用程序需要从代码遍历字段、驱动语音辅助表单填写,或在不依赖鼠标命中测试的情况下将活动字段暴露给辅助功能层时,使用这些成员

Remarks

Example

if Pdf1.FormFieldCount > 0 then
  Pdf1.FocusFormField(0);
ShowMessage(Pdf1.FocusedFormFieldText);

See Also

FormField, FormFieldCount, FormFieldInfo, FormFieldTabOrder, FocusedFormFieldIndex