46
activePDF Toolkit Professional Edition
aptkl4a 30405
Copyright 2005, activePDF, Inc. All Rights Reserved.
Page 293 of 553
Alignment
Description
Sets and retrieves the alignment for the specified field.
Return type
Short
Return Value
Description
0
The current alignment is left.
1
The current alignment is center.
2
The current alignment is right.
3
The current alignment is full justified.
Syntax
value = object.
Alignment
= value
The Alignment property has these required parts:
Part
Value Type
Description
Object
An expression of the PDFFieldInfo subobject.
Value
Short
0 = Left.
1=Center.
2=Right.
3=Justified Full.
Remarks
If justified is selected for a multi-line field, the last line of the field will not be justified. If you require
the last line to be justified, you can pass a carriage return.
Example
strPath = CreateObject("Scripting.FileSystemObject").GetAbsolutePathName(".") & "\"
Set TK = CreateObject("APToolkit.Object")
r = TK.OpenInputFile("Input.pdf")
Set FIO = TK.FieldInfo("test", 1)
MsgBox FIO.Alignment
Set FIO = Nothing
Set TK = Nothing