SetXFAFormFieldBorderColor
Form fields, Colour
Description
Sets the border colour of the specified XFA form field. The field name may be a relative template path or a standard template SOM path that starts with $template or xfa.template.
Syntax
Delphi
Function TPDFlib.SetXFAFormFieldBorderColor(Const XFAFieldName: WideString; Red, Green, Blue: Double): Integer;
ActiveX
Function PDFlib::SetXFAFormFieldBorderColor(XFAFieldName As String, Red As Double, Green As Double, Blue As Double) As Long
DLL
int DLSetXFAFormFieldBorderColor(int InstanceID, const wchar_t* XFAFieldName, double Red, double Green, double Blue);
int DLSetXFAFormFieldBorderColorA(int InstanceID, const char* XFAFieldName, double Red, double Green, double Blue);
Parameters
| XFAFieldName | The XFA template field name to work with; accepts dot-based SOM paths, slash-delimited paths returned by GetXFAFormFieldNames or GetXFAFormFieldName, and $template/... roots; slash-delimited paths preserve literal periods, and dot-delimited SOM paths accept escaped periods such as Line\.Item |
|---|---|
| Red | The red component of the colour, which should be a value between 0 and 1 |
| Green | The green component of the colour, which should be a value between 0 and 1 |
| Blue | The blue component of the colour, which should be a value between 0 and 1 |
Return values
| 1 | The border colour was written to the XFA form field |
|---|---|
| 0 | The document has no form data or the field cannot be found |