PDFium Delphi Component Docs

FormFieldTypeAtPoint Methode

Komponente: TPdf  ·  Unit: PDFium

Syntax

function FormFieldTypeAtPoint(X, Y: Double; out FieldType: TPdfFormFieldType): Boolean;

Beschreibung

Verwendet natives PDFium-Treffer-Testing im Seitenraum, um das Formularfeld bei X und Y zu identifizieren, ohne ein Annotations-Handle zu allozieren

Liefert true und füllt FieldType, wenn ein Widget vorhanden ist, andernfalls false und setzt FieldType auf fiUnknown

TPdfFormFieldType umfasst fiUnknown, fiPushButton, fiCheckBox, fiRadioButton, fiComboBox, fiListBox, fiTextField und fiSignature, dazu die nur für XFA bestimmten Werte fiXfa, fiXfaCheckBox, fiXfaComboBox, fiXfaImageField, fiXfaListBox, fiXfaPushButton, fiXfaSignature und fiXfaTextField, die nur auftreten, wenn das geladene PDFium-Modul mit XFA-Unterstützung gebaut wurde und das Dokument XFA-Felder besitzt

Eine aktive Seite und eine initialisierte Form-Fill-Umgebung sind erforderlich

Siehe auch

Formular-Host-Callbacks, TPdfView.FormFieldTypeAt