GetFormFieldJustification
Form fields
Description
Returns the text justification of a form field from the /Q quadding entry of the field dictionary
The code describes how the field text is aligned inside its box when displayed
Syntax
Delphi
Function TPDFlib.GetFormFieldJustification(Index: Integer): Integer;
Parameters
| Index | The index of the form field. The first form field has an index of 1 |
|---|
Return values
| 0 | Left aligned |
|---|---|
| 1 | Centered |
| 2 | Right aligned |
| -1 | The field has no /Q entry, which distinguishes an unset justification from an explicit left alignment |
Remarks
The same codes are accepted by SetFormFieldAlignment; a missing /Q entry renders as left aligned by default
See also
GetFormFieldAlignment, SetFormFieldAlignment, GetFormFieldIsMultiLine