SetFormFieldColor
表单字段、颜色
描述
设置表单字段中文本的颜色。颜色参数值范围为 0 至 1,其中 0 表示该颜色的 0%,1 表示 100%
语法
Delphi
Function TPDFlib.SetFormFieldColor(Index: Integer; Red, Green, Blue: Double): Integer;
ActiveX
Function PDFlib::SetFormFieldColor(Index As Long, Red As Double, Green As Double, Blue As Double) As Long
DLL
int DLSetFormFieldColor(int InstanceID, int Index, double Red, double Green, double Blue);
参数
| Index | 要操作的表单字段索引。第一个表单字段的索引为 1 |
|---|---|
| Red | 颜色的红色分量 |
| Green | 颜色的绿色分量 |
| Blue | 颜色的蓝色分量 |
返回值
| 0 | 找不到表单字段 |
|---|---|
| 1 | 已成功设置表单字段文本颜色 |