NewChildFormField

フォームフィールド

説明

別のフィールドの子として、選択ページに新しいフォームフィールドを追加する

構文

Delphi

Function TPDFlib.NewChildFormField(Index: Integer; Const Title: WideString; FieldType: Integer): Integer;

ActiveX

Function PDFlib::NewChildFormField(Index As Long, Title As String, FieldType As Long) As Long

DLL

int DLNewChildFormField(int InstanceID, int Index, const wchar_t* Title, int FieldType);
int DLNewChildFormFieldA(int InstanceID, int Index, const char* Title, int FieldType);

パラメータ

Index親フィールドのインデックス。
Title新しいフォームフィールドのタイトル。タイトルにピリオド文字 "." を含めることはできない
FieldType作成するフィールドの型: 1 = Text 2 = Pushbutton 3 = Checkbox 4 = Radiobutton 5 = Choice 6 = Signature 7 = Parent

戻り値

0新しいフォームフィールドを作成できませんでした
Non-zeroフォームフィールドが正常に作成されました。これは新しいフィールドのインデックスです