SetFormFieldAlignment
表单字段
描述
设置指定表单字段的对齐方式
语法
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);
参数
| Index | 要操作的表单字段索引。第一个表单字段的索引为 1 |
|---|---|
| Alignment | 表单字段使用的对齐方式:0 = 左对齐 1 = 居中 2 = 右对齐 |
返回值
| 0 | 表单字段索引无效 |
|---|---|
| 1 | 表单字段的对齐方式已成功设置 |