SetFormFieldValue

フォームフィールド

説明

フォームフィールドの初期値を設定します。次の場合、フォームフィールドの外観ストリームが生成されます

SetNeedAppearances(1) が呼び出されています

構文

Delphi

Function TPDFlib.SetFormFieldValue(Index: Integer; Const NewValue: WideString): Integer;

ActiveX

Function PDFlib::SetFormFieldValue(Index As Long, NewValue As String) As Long

DLL

int DLSetFormFieldValue(int InstanceID, int Index, const wchar_t * NewValue);

パラメータ

Index必要なフォームフィールドのインデックス。最初のフォームフィールドのインデックスは 1 です
NewValueフォームフィールドの新しい値。複数行テキストフィールドでは、Chr(13) または Chr(13) + Chr(10) を使用して改行を強制できる

戻り値

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