GetFormFieldJustification

表單欄位

描述

從欄位字典的 /Q quadding 項目傳回表單欄位的文字對齊方式

這個代碼描述欄位文字顯示時在方框內的對齊方式

語法

Delphi

Function TPDFlib.GetFormFieldJustification(Index: Integer): Integer;

參數

Index表單欄位的索引。第一個表單欄位的索引為 1

傳回值

0靠左對齊
1置中
2靠右對齊
-1欄位沒有 /Q 項目,藉此區分未設定的對齊與明確的靠左對齊

備註

SetFormFieldAlignment 接受相同的代碼;缺少 /Q 項目時預設以靠左對齊呈現

另請參閱

GetFormFieldAlignment, SetFormFieldAlignment, GetFormFieldIsMultiLine