SetFormFieldBackgroundColorGray

フォームフィールド、カラー

説明

指定したフォームフィールドの背景色を設定します。SetFormFieldBackgroundColor 関数に似ていますが、Gray カラースペースで 1 つの色成分を指定します。指定できる値は 0 から 1 の範囲です。

構文

Delphi

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

ActiveX

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

DLL

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

パラメータ

Indexフォームフィールドのインデックス
G色のグレー成分です。0 から 1 です。DLL と ActiveX のシグネチャではこのパラメータを Gray と名付けています

戻り値

0フォームフィールドが見つかりませんでした
1指定したフォームフィールドの背景色を正常に設定しました