Click or drag to resize

FormField Class

Base class for all AcroForm field wrappers.
Inheritance Hierarchy
SystemObject
  ExpertPdf.Anywhere.PDFFormsFormField
    More

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

The FormField type exposes the following members.

Properties
 NameDescription
Public propertyDisplayPageGets the zero-based index of the page the field is on, or -1.
Public propertyDisplayRectangleGets the field rectangle on its page (in PDF points).
Public propertyFlattenGets or sets a value indicating whether this field is flattened on save.
Public propertyFullNameGets the fully-qualified field name.
Public propertyNameGets or sets the field name.
Public propertyReadOnlyGets or sets a value indicating whether the field is read-only.
Public propertyWidgetsGets the collection of widgets (visual placements) of this field.
Top
Example
PdfFormManager manager = new PdfFormManager();
manager.Load("form.pdf");
foreach (FormField field in manager.Fields)
{
    System.Console.WriteLine(field.Name + " on page " + field.DisplayPage);
    field.ReadOnly = true;
}
manager.Save("locked.pdf");
See Also
Inheritance Hierarchy