SetFormFieldChoiceType
表單欄位
描述
把選擇類表單欄位設為下拉式方塊或清單方塊。
語法
Delphi
Function TPDFlib.SetFormFieldChoiceType(Index, ChoiceType: Integer): Integer;
ActiveX
Function PDFlib::SetFormFieldChoiceType(Index As Long, ChoiceType As Long) As Long
DLL
int DLSetFormFieldChoiceType(int InstanceID, int Index, int ChoiceType);
參數
| Index | 表單欄位的索引 |
|---|---|
| ChoiceType | 1 = 把表單欄位設為可捲動清單方塊 2 = 把表單欄位設為下拉式方塊 3 = 把表單欄位設為可多重選取的可捲動清單方塊 4 = 把表單欄位設為帶編輯框的下拉式方塊 |
傳回值
| 0 | 欄位未變更 |
|---|---|
| 1 | 欄位變更成功 |