GetFreeTextAnnotAlignment
Annotations and hotspot links
Description
Reads the text alignment of a FreeText annotation
An absent /Q entry reports ataLeft
Syntax
Delphi
Function GetFreeTextAnnotAlignment(Index: Integer; Out Alignment: TPDFlibAnnotTextAlignment): Integer;Parameters
| Index | One-based annotation index on the currently selected page; the annotation must be a FreeText annotation |
|---|---|
| Alignment | Receives ataLeft, ataCenter or ataRight; an absent /Q entry reports ataLeft |
Return values
| 1 | The alignment was read, including the default when /Q is absent |
|---|---|
| 0 | No document is loaded, Index does not address a FreeText annotation, or /Q is not an integer inside the enumeration; Alignment stays at ataLeft |