Table of Contents

Class PdfFormFields

Namespace
PdfSharp.Pdf.Forms
Assembly
PdfSharp.dll

Holds a collection of interactive fields (Acro fields).

public sealed class PdfFormFields : PdfArray
Inheritance
object
PdfFormFields
Inherited Members
Extension Methods

Properties

Count

Gets the number of top-level fields in this collection.

this[int]

Gets a field from the collection. For your convenience an instance of a derived class like PdfTextField or PdfCheckBox is returned if PDFsharp can guess the actual type of the dictionary. If the actual type cannot be guessed by PDFsharp the function returns an instance of PdfGenericField.

this[string]

Gets the field with the specified fully qualified name, such as "name" or "address.city" for the kid "city" of the field "address", or null if the form has no such field.

Methods

GetAllFields(bool)

Gets all fields recursively.

GetEnumerator()

Returns an enumerator that iterates through an array of Acro fields.

TryGetField(string, out PdfFormField)

Tries to get the field with the specified fully qualified name, such as "address.city".