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。 |
|---|---|
| Multiline | 0 = 欄位文字限單行 1 = 欄位可含多行文字 0 = 此欄位不是密碼欄位 1 = 此欄位是密碼欄位,字元以星號顯示 |
| Password | 0 = 此欄位不是檔案選擇欄位 1 = 此欄位輸入文字所指定檔案的內容,會作為表單欄位的值送出 |
| FileSelect | |
| DoNotSpellCheck | 0 = 欄位會做拼字檢查 1 = 欄位不做拼字檢查 |
| DoNotScroll | 0 = 欄位可捲動 1 = 欄位不可捲動 |
傳回值
| 0 | 找不到表單欄位 文字欄位的選項設定成功 |
|---|---|
| 1 | int DoNotScroll); |