Click or drag to resize

FormFieldListBox Class

A list box field (single- or multi-select).
Inheritance Hierarchy
SystemObject
  ExpertPdf.Anywhere.PDFFormsFormField
    ExpertPdf.Anywhere.PDFFormsFormFieldListBox

Namespace: ExpertPdf.Anywhere.PDFForms
Assembly: ExpertPdf.Anywhere (in ExpertPdf.Anywhere.dll) Version: 22.0
Syntax
public class FormFieldListBox : FormField

The FormFieldListBox type exposes the following members.

Properties
 NameDescription
Public propertyDisplayPageGets the zero-based index of the page the field is on, or -1.
(Inherited from FormField)
Public propertyDisplayRectangleGets the field rectangle on its page (in PDF points).
(Inherited from FormField)
Public propertyFlattenGets or sets a value indicating whether this field is flattened on save.
(Inherited from FormField)
Public propertyFullNameGets the fully-qualified field name.
(Inherited from FormField)
Public propertyItemsGets the export value of every item in the list box.
Public propertyItemsCountGets the number of items in the list box.
Public propertyMultiSelectGets or sets a value indicating whether multiple items may be selected.
Public propertyNameGets or sets the field name.
(Inherited from FormField)
Public propertyReadOnlyGets or sets a value indicating whether the field is read-only.
(Inherited from FormField)
Public propertySelectedIndexesGets or sets the zero-based indexes of the selected items.
Public propertySelectedValuesGets or sets the values of the selected items.
Public propertyWidgetsGets the collection of widgets (visual placements) of this field.
(Inherited from FormField)
Top
Example
PdfFormManager manager = new PdfFormManager();
manager.Load("form.pdf");
FormFieldListBox toppings =
    manager.Fields["toppings"] as FormFieldListBox;
toppings.SelectedValues = new string[] { "cheese", "olives" };
manager.Save("filled.pdf");
See Also