GetFormFieldBackgroundColor
Trường biểu mẫu, Màu
Mô tả
Trả về màu nền của trường chỉ định. Số giá trị khả dụng phụ thuộc vào kiểu màu chỉ định trong trường biểu mẫu. Số thành phần có sẵn lấy được qua hàm GetFormFieldBackgroundColorType
0 = No color specified
1 = DeviceGray (1 component)
3 = DeviceRGB (3 components)
4 = CMYK (4 components
Cú pháp
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);
Tham số
| Index | Chỉ số của trường biểu mẫu cần xem |
|---|---|
| ColorComponent | For DeviceGray (color type = 1) 1 = Gray level For DeviceRGB (color type = 3) 1 = Red 2 = Green 3 = Blue For DeviceCMYK (color type = 4) 1 = Cyan 2 = Magenta 3 = Yellow 4 = Black |