SetFormFieldTextSize

文本、表单字段

描述

设置指定表单字段中文本的大小。值为 0 表示表单字段会自动调整文本大小以适应可用空间

语法

Delphi

Function TPDFlib.SetFormFieldTextSize(Index: Integer; NewTextSize: Double): Integer;

ActiveX

Function PDFlib::SetFormFieldTextSize(Index As Long, NewTextSize As Double) As Long

DLL

int DLSetFormFieldTextSize(int InstanceID, int Index, double NewTextSize);

参数

Index要操作的表单字段索引。第一个表单字段的索引为 1
NewTextSize表单字段'字体的新大小,以点为单位

返回值

0找不到表单字段
1表单字段字体大小已成功设置