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

FieldIndexOne-based form field index

Return values

fekNoneThe field is neither a text nor a choice field, the index is invalid or no library is loaded
Other valueThe editor kind BeginEditFormField will create for the field

See also

TPDFlibViewer, BeginEditFormField, FocusNextFormField