SetFormFieldAlignment

Form fields

Description

Sets the alignment for the specified form field.

Syntax

Delphi

function TPDFlib.SetFormFieldAlignment(Index, Alignment: Integer): Integer;

ActiveX

Function PDFlib::SetFormFieldAlignment(Index As Long, Alignment As Long) As Long

DLL

int DLSetFormFieldAlignment(int InstanceID, int Index, int Alignment);

Parameters

IndexThe index of the form field to work with. The first form field has an index of 1.
AlignmentThe alignment to use for the form field: 0 = Left alignment 1 = Centered 2 = Right alignment

Return values

0The form field index was invalid
1The alignment of the form field was set successfully