AddFormFieldSub

表单字段

描述

向指定的单选按钮或选择表单字段添加子字段

函数返回可与以下调用配合使用的临时表单字段 Index

SetFormFieldBounds、SetFormFieldCheckStyle 和其他函数

要设置选择项'导出值和显示值,请使用 AddFormFieldChoiceSub 函数

语法

Delphi

Function TPDFlib.AddFormFieldSub(Index: Integer; Const SubName: WideString): Integer;

ActiveX

Function PDFlib::AddFormFieldSub(Index As Long, SubName As String) As Long

DLL

int DLAddFormFieldSub(int InstanceID, int Index, const wchar_t * SubName);

参数

Index要处理的表单字段索引。第一个表单字段的索引为 1。新子字段的名称。可使用 SetFormFieldValue 函数将表单字段的值设为此名称
SubName

返回值

0未添加子字段,指定的表单字段可能不是单选按钮或选择表单字段
Non-zero临时字段 Index