AddFormFieldSub
表單欄位
描述
在指定的單選鈕或下拉選擇表單欄位中加入子欄位
函式傳回暫時的表單欄位索引,可搭配
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 | A temporary field Index |