AddFormFieldChoiceSub
表单字段
描述
类似于 AddFormFieldSub 函数,但允许设置选择字段项目's导出值和显示值
函数返回可与以下调用配合使用的临时表单字段 Index
SetFormFieldBounds、SetFormFieldCheckStyle 和其他函数
语法
Delphi
Function TPDFlib.AddFormFieldChoiceSub(Index: Integer; Const SubName, DisplayName: WideString): Integer;
ActiveX
Function PDFlib::AddFormFieldChoiceSub(Index As Long, SubName As String, DisplayName As String) As Long
DLL
int DLAddFormFieldChoiceSub(int InstanceID, int Index, const wchar_t * SubName, const wchar_t * DisplayName);
参数
| Index | 要操作的表单字段索引。第一个表单字段的索引为 1。该表单字段必须为选项字段 |
|---|---|
| SubName | 新子字段的导出值 可使用 SetFormFieldValue 函数将表单字段值设置为此名称 新子字段的显示名称 |
| DisplayName |
返回值
| 0 | 未添加子字段。指定的表单字段可能不是选择型表单字段 |
|---|---|
| Non-zero | 临时字段 Index |