GetFormFieldColor
Form fields, Colour
Description
Retrieves the colour of the text in the form field. This function must be called three times to retrieve all components of the colour (red, green and blue).
Syntax
Delphi
Function TPDFlib.GetFormFieldColor(Index, ColorComponent: Integer): Double;
ActiveX
Function PDFlib::GetFormFieldColor(Index As Long, ColorComponent As Long) As Double
DLL
double DLGetFormFieldColor(int InstanceID, int Index, int ColorComponent);
Parameters
| Index | The index of the form field to work with. The first form field has an index of 1. |
|---|---|
| ColorComponent | 1 = Red 2 = Green 3 = Blue |
Return values
Returns one component (1–3) of the field's text colour, or 0 when Index or ColorComponent is out of range