THotPDF.GetLoadedFormFieldOptionCount Method

When the selected form field in the loaded document belongs to a selectable control such as a combo box or list box, returns the specific number of options contained within that control.

Declaration

function GetLoadedFormFieldOptionCount(FieldIndex: Integer): Integer;

Unit

HPDFDoc

Parameters

NamePurpose
FieldIndexThe index of the target form control in the document's field array (zero-based).

Return value

Returns the total number of sub-items or selectable options carried by the field. If it is not a selectable control type, it may return 0.

Usage notes

Related APIs