SetFormFieldTextFlags

表单字段

描述

设置文本表单字段的多项选项

语法

Delphi

Function TPDFlib.SetFormFieldTextFlags(Index, Multiline, Password, FileSelect, DoNotSpellCheck, DoNotScroll: Integer): Integer;

ActiveX

Function PDFlib::SetFormFieldTextFlags(Index As Long, Multiline As Long, Password As Long, FileSelect As Long, DoNotSpellCheck As Long, DoNotScroll As Long) As Long

DLL

int DLSetFormFieldTextFlags(int InstanceID, int Index, int Multiline, int Password, int FileSelect, int DoNotSpellCheck, int DoNotScroll);

参数

Index要操作的表单字段索引。第一个表单字段的索引为 1
Multiline0 = 字段'的文本限为单行 1 = 字段可包含多行文本 0 = 字段不是密码字段 1 = 字段是密码,字符将显示为星号
Password0 = 字段不是文件选择字段 1 = 将此字段中输入文本指定文件的内容作为表单字段值提交
FileSelect
DoNotSpellCheck0 = 字段将进行拼写检查;1 = 字段不会进行拼写检查
DoNotScroll0 = 字段可滚动 1 = 字段不允许滚动

返回值

0找不到表单字段 已成功设置文本字段的选项
1int DoNotScroll);