SetFormFieldBorderColorGray

Form fields, Color

Description

Sets the border color of the specified form field. Similar to the SetFormFieldBorderColor function, but a single color component is specified in the Gray color space. Possible values are in the range 0 to 1.

Syntax

Delphi

Function TPDFlib.SetFormFieldBorderColorGray(Index: Integer; G: Double): Integer;

ActiveX

Function PDFlib::SetFormFieldBorderColorGray(Index As Long, Gray As Double) As Long

DLL

int DLSetFormFieldBorderColorGray(int InstanceID, int Index, double Gray);

Parameters

IndexThe index of the form field
GThe gray component of the color, from 0 to 1. The DLL and ActiveX signatures name this parameter Gray

Return values

0The form field could not be found
1The border color of the specified form field was set successfully