SetFormFieldBorderColorGray
表单字段、颜色
描述
设置指定表单字段的边框颜色。与 SetFormFieldBorderColor 函数类似,但在 Gray 色彩空间中指定单一颜色分量。取值范围为 0 到 1。
语法
Delphi
Function TPDFlib.SetFormFieldBorderColorGray(Index: Integer; G: Double): Integer;
ActiveX
Function PDFlib::SetFormFieldBorderColorGray(Index As Long, Gray As Double) As Long
DLL
int DLSetFormFieldBorderColorGray(int InstanceID, int Index, double Gray);
参数
| Index | 表单字段的索引 |
|---|---|
| G | 颜色的灰度分量,0 到 1。DLL 与 ActiveX 签名中该参数名为 Gray |
返回值
| 0 | 找不到该表单字段 |
|---|---|
| 1 | 指定表单字段的边框颜色设置成功 |