THPDFPage.CreateComboBox Method
สรุปเมธอด: THPDFPage.CreateComboBox Method
การประกาศ
function CreateComboBox(const FieldName, InitialValue: AnsiString; const Options: array of AnsiString; Rectangle: TRect): THPDFAcroFormField;
ยูนิต
HPDFDoc
พารามิเตอร์
| ชื่อ | วัตถุประสงค์ |
|---|---|
FieldName | Name of the form field |
InitialValue | Initial selected value |
Options | Available combo box values |
Rectangle | Widget rectangle on the page |
ค่าที่ส่งกลับ
THPDFAcroFormField wrapper for the created combo box
หมายเหตุการใช้งาน
- Keep option values stable when exporting or importing form data
- Use THPDFPage.AddComboBox for the simpler one-call workflow
API ที่เกี่ยวข้อง
- THPDFPage
- THPDFPage Methods
- AcroForm Support
- THotPDF
- Contents