Click or drag to resize
Pdf Library for .NET

PdfFormFieldListBox Class

A list box field (single- or multi-select).
Inheritance Hierarchy
SystemObject
  SelectPdf.UniversalPdfFormField
    SelectPdf.UniversalPdfFormFieldListBox

Namespace: SelectPdf.Universal
Assembly: SelectPdf.Universal (in SelectPdf.Universal.dll) Version: 26.4
Syntax
public class PdfFormFieldListBox : PdfFormField

The PdfFormFieldListBox type exposes the following members.

Properties
 NameDescription
Public propertyDisplayPageGets the zero-based index of the page the field is on, or -1.
(Inherited from PdfFormField)
Public propertyDisplayRectangleGets the field rectangle on its page (in PDF points).
(Inherited from PdfFormField)
Public propertyFlattenGets or sets a value indicating whether this field is flattened on save.
(Inherited from PdfFormField)
Public propertyFullNameGets the fully-qualified field name.
(Inherited from PdfFormField)
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 PdfFormField)
Public propertyReadOnlyGets or sets a value indicating whether the field is read-only.
(Inherited from PdfFormField)
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 PdfFormField)
Top
Example
PdfFormManager manager = new PdfFormManager();
manager.Load("form.pdf");
PdfFormFieldListBox toppings =
    manager.Fields["toppings"] as PdfFormFieldListBox;
toppings.SelectedValues = new string[] { "cheese", "olives" };
manager.Save("filled.pdf");
See Also