PDFium Delphi Component Docs

FocusedFormFieldText metoda

Komponenta: TPdfView  ·  Jedinica: PDFium
Radi s logičkim kursorom fokusa AcroForma na trenutačnoj stranici za tijekove rada s tipkovnicom, govorom i pristupačnošću

Sintaksa

function FocusedFormFieldText: WString;

Povratna vrijednost

WString. Tekst koji izlaže trenutačno fokusirani widget obrasca, ili prazan niz

Opis

The form-focus members maintain a logical cursor over AcroForm widget annotations na trenutnoj stranici. The cursor follows FormFieldTabOrder and returns -1 when no current-page field is focused

Use these members when an application needs to walk fields from code, drive voice-assisted form filling, or expose the active field to an accessibility layer without relying on mouse hit testing

Napomene

Primjer

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

Vidi također

FormField, FormFieldCount, FormFieldInfo, FormFieldTabOrder, FocusedFormFieldIndex