SetFormFieldBackgroundColor

表单字段、颜色

描述

设置指定表单字段的背景色。颜色参数值范围为 0 到 1,其中 0 表示颜色的 0%,1 表示颜色的 100%

语法

Delphi

Function TPDFlib.SetFormFieldBackgroundColor(Index: Integer; Red, Green, Blue: Double): Integer;

ActiveX

Function PDFlib::SetFormFieldBackgroundColor(Index As Long, Red As Double, Green As Double, Blue As Double) As Long

DLL

int DLSetFormFieldBackgroundColor(int InstanceID, int Index, double Red, double Green, double Blue);

参数

Index表单字段的索引
Red颜色的红色分量
Green颜色的绿色分量;颜色的蓝色分量
Blue

返回值

0找不到表单字段或参数无效,已成功设置表单字段的背景颜色
1