SetFormFieldBackgroundColorSepA

Form fields, Color

Description

結尾的 A 表示 ANSI(char)DLL 進入點;ActiveX/COM 介面只提供 Unicode 形式。行為與 SetFormFieldBackgroundColorSep 完全相同,字串參數依目前 SetAnsiMode 的字碼頁解讀

設定指定表單欄位的背景顏色。類似 SetFormFieldBorderColor 函式,但使用以 AddSeparationColor 函式加入的特別色淡色值。PDF 規格不支援表單欄位使用特別色色彩空間,因此結果不一定有效,尤其欄位之後在 Acrobat 中被編輯時。此功能是為欄位將被扁平化的情境而加

語法

Delphi

Function DLSetFormFieldBackgroundColorSepA(InstanceID, Index: Integer; ColorName: PAnsiChar; Tint: Double): Integer;

DLL

int DLSetFormFieldBackgroundColorSepA(int InstanceID, int Index, const char * ColorName, double Tint);

參數

Index表單欄位的索引
ColorName與 AddSeparationColor 函式搭配使用的特別色名稱
Tint要使用的顏色量。0 表示無色(白),1 表示最大顏色。

傳回值

0找不到表單欄位,或找不到特別色名稱
1指定表單欄位的背景顏色設定成功