SetFormFieldColorCMYK
Form fields, Colour
Description
Sets the colour of the text in the specified form field. Similar to the SetFormFieldBorderColor function, but the colour components are specified in the CMYK colour space (Cyan, Magenta, Yellow, Black). The values of the colour parameters range from 0 to 1, with 0 indicating 0% and 1 indicating 100% of the colour.
Syntax
Delphi
function TPDFlib.SetFormFieldColorCMYK(Index: Integer; C, M, Y, K: Double): Integer;ActiveX
Function PDFlib::SetFormFieldColorCMYK(Index As Long, C As Double, M As Double, Y As Double, K As Double) As LongDLL
int DLSetFormFieldColorCMYK(int InstanceID, int Index, double C, double M, double Y, double K);Parameters
| Index | The index of the form field |
|---|---|
| C | The cyan component of the colour |
| M | The magenta component of the colour |
| Y | The yellow component of the colour |
| K | The black component of the colour |
Return values
| 0 | The form field could not be found The text colour of the specified form field was set successfully |
|---|---|
| 1 |