function FocusFormField(Index: Integer): Boolean;
| Index | Integer。当前查看器页面上基于 0 的 AcroForm 控件索引 |
表单焦点成员在当前页面的 AcroForm 控件注释上维护一个逻辑游标。该游标遵循 FormFieldTabOrder,当没有当前页字段被聚焦时返回 -1
当应用程序需要从代码遍历字段、驱动语音辅助表单填写,或在不依赖鼠标命中测试的情况下将活动字段暴露给辅助功能层时,使用这些成员
if PdfView1.FormFieldCount > 0 then
PdfView1.FocusFormField(0);
ShowMessage(PdfView1.FocusedFormFieldText);