AddFormFieldChoiceSub
表單欄位
描述
類似 AddFormFieldSub 函式,但可設定 Choice 欄位選項的匯出值與顯示值
函式傳回暫時的表單欄位索引,可搭配
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 | A temporary field Index |