SetFormFieldColorSep

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

説明

指定したフォームフィールドのテキスト色を設定します。SetFormFieldBorderColor 関数と似ていますが、AddSeparationColor 関数で追加した分色の色合いを使用します。PDF 仕様はフォームフィールドの分色色空間をサポートしないため、特に後で Acrobat で編集する場合は常に正しく動作するとは限りません。この機能はフォームフィールドをフラット化する用途向けです

構文

Delphi

Function TPDFlib.SetFormFieldColorSep(Index: Integer; Const ColorName: WideString; Tint: Double): Integer;

ActiveX

Function PDFlib::SetFormFieldColorSep(Index As Long, ColorName As String, Tint As Double) As Long

DLL

int DLSetFormFieldColorSep(int InstanceID, int Index, const wchar_t * ColorName, double Tint);

パラメータ

Indexフォームフィールドのインデックス
ColorName[f:AddSeparationColor] 関数で使用した分離色の名前
Tint使用する色の量です。0 は色なし (白)、1 は最大の色を示します

戻り値

0フォームフィールドが見つからないか、分離色名が見つかりませんでした
1指定したフォームフィールドのテキスト色が正常に設定された