GetFormFieldEditorKind
Form fields, viewer interaction
Description
Resolves the PDF text and choice flags of a field into the kind of in-place editor the viewer will create for it; this method does not require a window handle
Text fields return fekText, fekMultilineText, fekPassword, fekMultilinePassword or fekCombText, where comb requires the comb flag together with a positive MaxLen and neither multiline nor password; choice fields return fekListBox, fekMultiSelectListBox, fekComboBox or fekEditableComboBox following the field's choice type
Syntax
Delphi
Function TPDFlibViewer.GetFormFieldEditorKind(FieldIndex: Integer): TPDFlibViewerFormEditorKind;Parameters
| FieldIndex | One-based form field index |
|---|
Return values
| fekNone | The field is neither a text nor a choice field, the index is invalid or no library is loaded |
|---|---|
| Other value | The editor kind BeginEditFormField will create for the field |