Xojo Developer Conference
25/27th April 2018 in Denver.
MBS Xojo Conference
6/7th September 2018 in Munich, Germany.

DynaPDF Manual - Page 646

Previous Page 645   Index   Next Page 647

Function Reference
Page 646 of 750
SetFieldOrientation
Syntax:
LBOOL pdfSetFieldOrientation(
const PPDF* IPDF, // Instance pointer
UI32 AField,
// Field handle
SI32 Value)
// Orientation in degrees (must be a multiple of 90)
The function sets or changes the orientation of a field. The parameter AField be a valid field handle.
The parameter Value must a multiple of 90 or 0. Positive values rotate the field counter clockwise,
negative values clockwise.
The function can also be used to rotate a caret annotation. The annotation handle must be added to
the constant PDF_ANNOT_INDEX in this case because annotations are stored in a different array.
Only caret annotations can be rotated, all other annotation types do not support this feature.
Return values:
If the function succeeds the return value is 1. If the function fails the return value is 0.
SetFieldTextAlign
Syntax:
LBOOL pdfSetFieldTextAlign(
const PPDF* IPDF, // Instance pointer
UI32 AField,
// Text field or button field handle
TTextAlign Align) // New alignment
typedef enum
{
taLeft,
taCenter,
taRight,
taJustify
}TTextAlign;
The function set or changes the text alignment of a text or button field. The parameter AField must be
a valid handle of a text field or button field.
Return values:
If the function succeeds the return value is 1. If the function fails the return value is 0.
 

Previous topic: SetFieldName

Next topic: SetFillColor