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);
参数
| Index | 父字段的索引 新表单字段的标题 标题不得包含句点字符 "." |
|---|---|
| Title | |
| FieldType | 要创建的字段类型:1 = 文本 2 = 按钮 3 = 复选框 4 = 单选按钮 5 = 选择框 6 = 签名 7 = 父字段 |
返回值
| 0 | 无法创建新表单字段 |
|---|---|
| Non-zero | 表单字段已成功创建,这是新字段的索引 |