GetFormFieldBackgroundColor
表單欄位、色彩
描述
傳回指定欄位的背景顏色。可用值的數量取決於表單欄位指定的顏色類型,成分數量可用 GetFormFieldBackgroundColorType 函式取得
0 = 未指定顏色
1 = DeviceGray(1 個分量)
3 = DeviceRGB(3 個分量)
4 = CMYK(4 個分量
語法
Delphi
Function TPDFlib.GetFormFieldBackgroundColor(Index, ColorComponent: Integer): Double;
ActiveX
Function PDFlib::GetFormFieldBackgroundColor(Index As Long, ColorComponent As Long) As Double
DLL
double DLGetFormFieldBackgroundColor(int InstanceID, int Index, int ColorComponent);
參數
| Index | 要檢視的表單欄位索引 |
|---|---|
| ColorComponent | DeviceGray(color type = 1):1 = 灰階值 DeviceRGB(color type = 3):1 = 紅 2 = 綠 3 = 藍 DeviceCMYK(color type = 4):1 = 青 2 = 洋紅 3 = 黃 4 = 黑 |
傳回值
傳回欄位背景色陣列中的一個成份(從 1 開始),成份數量取決於欄位的色彩空間;Index 或 ColorComponent 超出範圍或欄位未設定背景色時傳回 0