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 = 文字 2 = 按鈕 3 = 核取方塊 4 = 單選鈕 5 = 選擇 6 = 簽章 7 = 父項 |
傳回值
| 0 | 無法建立新的表單欄位 |
|---|---|
| Non-zero | 表單欄位建立成功,這是新欄位的索引 |