Click or drag to resize

FormFieldsCollection Class

A read-only-count collection of the AcroForm fields in a loaded document. Index by position or by field name; enumerate to walk every field.
Inheritance Hierarchy
SystemObject
  ExpertPdf.Anywhere.PDFFormsFormFieldsCollection

Namespace: ExpertPdf.Anywhere.PDFForms
Assembly: ExpertPdf.Anywhere (in ExpertPdf.Anywhere.dll) Version: 22.0
Syntax
public class FormFieldsCollection : IEnumerable<FormField>, 
	IEnumerable

The FormFieldsCollection type exposes the following members.

Properties
 NameDescription
Public propertyCountGets the number of fields in the form.
Public propertyItemInt32Gets the field at the specified zero-based index.
Public propertyItemStringGets the field with the specified (fully-qualified) name, or null.
Top
Methods
 NameDescription
Public methodGetEnumeratorReturns an enumerator over the fields.
Top
Example
PdfFormManager manager = new PdfFormManager();
manager.Load("form.pdf");
FormFieldsCollection fields = manager.Fields;
for (int i = 0; i < fields.Count; i++)
    System.Console.WriteLine(fields[i].Name);
FormField byName = fields["email"];
See Also