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

IndexThe index of the form field. The first form field has an index of 1

Return values

0Left aligned
1Centered
2Right aligned
-1The 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