GetFormFieldBackgroundColor
فیلدهای فرم، رنگ
توضیحات
رنگ پسزمینهٔ فیلد مشخصشده را برمیگرداند؛ تعداد مقادیر موجود به نوع رنگ مشخصشده در فیلد فرم بستگی دارد. تعداد مؤلفههای موجود را میتوان با تابع GetFormFieldBackgroundColorType گرفت
0 = No color specified
1 = DeviceGray (1 مؤلفه)
3 = DeviceRGB (3 مؤلفه)
4 = CMYK (4 components
نحو
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 (نوع رنگ = 1) 1 = سطح خاکستری برای DeviceRGB (نوع رنگ = 3) 1 = قرمز 2 = سبز 3 = آبی برای DeviceCMYK (نوع رنگ = 4) 1 = سایان 2 = ماژنتا 3 = زرد 4 = مشکی |