ITMSFNCCustomPDFFormFieldsLib.AddListBox Method
Adds a list box field with items from the specified string array.
API unit family: TMSFNCPDFLib
Declaring type: ITMSFNCCustomPDFFormFieldsLib
Overloads
Overload 1
Adds a list box field with items from the specified string array.
function AddListBox(AFieldName: string; ARect: TRectF; AItems: TTMSFNCPDFLibStringArray; AItemIndex: Integer = -1; AReadOnly: Boolean = False; AHidden: Boolean = False): ITMSFNCCustomPDFFormFieldListBox; overload;
Parameters
| Name | Description |
|---|---|
AFieldName |
Unique name for the field in the PDF form. |
ARect |
Bounding rectangle of the field in PDF coordinate units. |
AItems |
Array of option strings to populate the list box. |
AItemIndex |
Zero-based index of the initially selected item; -1 selects none. |
AReadOnly |
When True, the field is read-only in the PDF viewer. |
AHidden |
When True, the field is invisible in the PDF viewer. |
Returns
Interface reference to the newly created list box field.
Overload 2
Adds a list box field with items from the specified string list.
function AddListBox(AFieldName: string; ARect: TRectF; AItems: TStrings; AItemIndex: Integer = -1; AReadOnly: Boolean = False; AHidden: Boolean = False): ITMSFNCCustomPDFFormFieldListBox; overload;
Parameters
| Name | Description |
|---|---|
AFieldName |
Unique name for the field in the PDF form. |
ARect |
Bounding rectangle of the field in PDF coordinate units. |
AItems |
String list whose items populate the list box. |
AItemIndex |
Zero-based index of the initially selected item; -1 selects none. |
AReadOnly |
When True, the field is read-only in the PDF viewer. |
AHidden |
When True, the field is invisible in the PDF viewer. |
Returns
Interface reference to the newly created list box field.