THPDFPage.CreateTextField Method
Résumé de la méthode: THPDFPage.CreateTextField Method
Déclaration
function CreateTextField(const FieldName, InitialValue: AnsiString; Rectangle: TRect; MaxLen: Integer = 0; Flags: THPDFFormFieldFlags = []): THPDFAcroFormField;
Unité
HPDFDoc
Paramètres
| Nom | Objectif |
|---|---|
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 |
Valeur de retour
THPDFAcroFormField wrapper for the created text field
Notes d'utilisation
- Use the returned wrapper when the text field needs additional appearance or action configuration
- Use THPDFPage.AddTextField for the simpler one-call workflow
- Les changements au niveau page affectent les opérateurs suivants sur la même page ; sauvegardez et restaurez l’état graphique lorsqu’un réglage temporaire ne doit pas se propager
API associées
- AcroForm Support
- THotPDF
- Contents