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表单字段的索引
ChoiceType1 = 将表单字段设为可滚动列表框;2 = 将表单字段设为下拉组合框;3 = 将表单字段设为多选可滚动列表框;4 = 将表单字段设为带编辑框的下拉组合框

返回值

0字段未更改
1字段已成功更改