Constructor PdfFormFieldInfo

Namespace
SoftZenPdf
Assembly
SoftZenPdf.dll

PdfFormFieldInfo(string, PdfFieldKind, string?, IReadOnlyList<string>, bool, bool, bool, int?, IReadOnlyList<int>)

A form field read from a document by ReadFormFields() or Fields.

public PdfFormFieldInfo(string Name, PdfFieldKind Kind, string? Value, IReadOnlyList<string> Options, bool ReadOnly, bool Required, bool Multiline, int? MaxLength, IReadOnlyList<int> PageIndices)

Parameters

Name string

The fully qualified field name, with parent names joined by dots (for example address.city).

Kind PdfFieldKind

The field type.

Value string

The current value: text for text and choice fields, the selected export value for check boxes and radio groups (Off when unselected), or null if the field has no value.

Options IReadOnlyList<string>

The export values of a choice field's options, or the "on" states of check boxes and radio groups.

ReadOnly bool

Whether the field is read-only.

Required bool

Whether the field must have a value when the form is submitted.

Multiline bool

Whether a text field accepts several lines.

MaxLength int?

The maximum text length of a text field, or null for no limit.

PageIndices IReadOnlyList<int>

Zero-based indices of the pages that show the field's widgets.