THPDFPage.CreateTextField Method
สรุปเมธอด: THPDFPage.CreateTextField Method
การประกาศ
function CreateTextField(const FieldName, InitialValue: AnsiString; Rectangle: TRect; MaxLen: Integer = 0; Flags: THPDFFormFieldFlags = []): THPDFAcroFormField;
ยูนิต
HPDFDoc
พารามิเตอร์
| ชื่อ | วัตถุประสงค์ |
|---|---|
FieldName | Name of the form field |
InitialValue | Initial text value |
Rectangle | Widget rectangle on the page |
MaxLen | Maximum accepted text length, or 0 for no explicit limit |
Flags | Additional form field flags |
ค่าที่ส่งกลับ
THPDFAcroFormField wrapper for the created text field
หมายเหตุการใช้งาน
- Use the returned wrapper when the text field needs additional appearance or action configuration
- Use THPDFPage.AddTextField for the simpler one-call workflow
API ที่เกี่ยวข้อง
- THPDFPage
- THPDFPage Methods
- AcroForm Support
- THotPDF
- Contents