Click or drag to resize

PdfFieldCollection Class

Represents a collection of all fields in an interactive form.
Inheritance Hierarchy
SystemObject
  SautinSoft.PdfPdfObject
    SautinSoft.PdfPdfCollection
      SautinSoft.PdfPdfCollectionPdfField
        SautinSoft.Pdf.FormsPdfFieldCollection

Namespace: SautinSoft.Pdf.Forms
Assembly: SautinSoft.Pdf (in SautinSoft.Pdf.dll) Version: 2024.11.26
Syntax
public sealed class PdfFieldCollection : PdfCollection<PdfField>, 
	IList, ICollection, IEnumerable, IList<PdfField>, 
	ICollection<PdfField>, IEnumerable<PdfField>

The PdfFieldCollection type exposes the following members.

Properties
 NameDescription
Public propertyItem Gets the first occurrence of a PdfField with the specified (fully qualified) field name or .
Public propertyNewRadioButtonName Gets or sets the name that will be applied to the newly created PdfRadioButtonField.
Top
Methods
 NameDescription
Public methodAddButton

Adds a new PdfButtonField to the PdfFieldCollection.

Its associated widget annotation will be added to the page and annotation's rectangle will be defined by left, bottom, width and height in default user space units.

Its Name will be automatically set.

Public methodAddCheckBox

Adds a new PdfCheckBoxField to the PdfFieldCollection.

Its associated widget annotation will be added to the page and annotation's rectangle will be defined by left, bottom, width and height in default user space units.

Its Name will be automatically set.

Public methodAddDropdown

Adds a new PdfDropdownField to the PdfFieldCollection.

Its associated widget annotation will be added to the page and annotation's rectangle will be defined by left, bottom, width and height in default user space units.

Its Name will be automatically set.

Public methodAddListBox

Adds a new PdfListBoxField to the PdfFieldCollection.

Its associated widget annotation will be added to the page and annotation's rectangle will be defined by left, bottom, width and height in default user space units.

Its Name will be automatically set.

Public methodAddRadioButton

Adds a new PdfRadioButtonField to the PdfFieldCollection.

Its associated widget annotation will be added to the page and annotation's rectangle will be defined by left, bottom, width and height in default user space units.

Its Name will be automatically set to the value of NewRadioButtonName.

Public methodAddSignature

Adds a new invisible PdfSignatureField to the PdfFieldCollection.

Its associated widget annotation will be added to the first page of the Pages and annotation's rectangle will have zero height and width, thus making the signature invisible.

Its Name will be automatically set.

Public methodAddSignature(PdfPage, Double, Double, Double, Double)

Adds a new visible PdfSignatureField to the PdfFieldCollection.

Its associated widget annotation will be added to the page and annotation's rectangle will be defined by left, bottom, width and height in default user space units.

Its Name will be automatically set.

Public methodAddText

Adds a new PdfTextField to the PdfFieldCollection.

Its associated widget annotation will be added to the page and annotation's rectangle will be defined by left, bottom, width and height in default user space units.

Its Name will be automatically set.

Public methodRefresh

Forces an update of the PdfFieldCollection to include all PdfFields contained in the Annotations of all Pages that are not already contained in the PdfFieldCollection.

This method also handles the invalid AcroForm entry in the Catalog dictionary and updates the Page property of all PdfAnnotations in the PdfDocument.

Top
Extension Methods
 NameDescription
Public Extension MethodGetArray Gets the PdfArray that serves as a backing storage of the specified PdfCollection.
(Defined by PdfObjectExtensions)
Public Extension MethodGetArray Gets the PdfArray that serves as a backing storage of the specified PdfObject or if no PdfArray serves as a backing storage of the specified PdfObject.
(Defined by PdfObjectExtensions)
Public Extension MethodGetDictionary Gets the PdfDictionary that serves as a backing storage of the specified PdfObject.
(Defined by PdfObjectExtensions)
Public Extension MethodGetOrAddArray Gets the PdfArray that serves as a backing storage of the specified PdfCollection.
(Defined by PdfObjectExtensions)
Public Extension MethodGetOrAddDictionary Gets the PdfDictionary that serves as a backing storage of the specified PdfObject.
(Defined by PdfObjectExtensions)
Top
See Also