PDFium Delphi Component Docs

เมธอด FormFieldTypeAtPoint

Component: TPdf  ·  Unit: PDFium

Syntax

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

Description

ใช้ page-space hit testing แบบ native ของ PDFium ระบุ form field ที่พิกัด X, Y โดยไม่ต้องจอง annotation handle

คืน true และเติมค่า FieldType เมื่อมี widget อยู่ มิฉะนั้นคืน false และตั้ง FieldType เป็น fiUnknown

TPdfFormFieldType ครอบคลุม fiUnknown, fiPushButton, fiCheckBox, fiRadioButton, fiComboBox, fiListBox, fiTextField และ fiSignature บวกชนิดเฉพาะ XFA อย่าง fiXfa, fiXfaCheckBox, fiXfaComboBox, fiXfaImageField, fiXfaListBox, fiXfaPushButton, fiXfaSignature และ fiXfaTextField ซึ่งพบได้เฉพาะเมื่อโมดูล PDFium ที่โหลดถูก build พร้อมรองรับ XFA และเอกสารมี XFA field

ต้องมีหน้าที่ active และ form fill environment ที่ initialize แล้ว

See Also

Form host callbacks, TPdfView.FormFieldTypeAt