PdfFormDataField Class

The value of a field in PdfFormData.

public sealed class PdfFormDataField

Constructors

NameDescription
PdfFormDataField(string, IEnumerable<string>)Initializes a field with several values, such as the choices of a multi-select list box.
PdfFormDataField(string, string?)Initializes a field with one value, or none.

PdfFormDataField overloads

PdfFormDataField(string, IEnumerable<string>)

PdfFormDataField.cs

Initializes a field with several values, such as the choices of a multi-select list box.

public PdfFormDataField(string name, IEnumerable<string> values)
Parameters
name string
The fully qualified name of the field, such as address.city.
values IEnumerable<string>
The values.

PdfFormDataField(string, string?)

PdfFormDataField.cs

Initializes a field with one value, or none.

public PdfFormDataField(string name, string? value)
Parameters
name string
The fully qualified name of the field, such as address.city.
value string?
The value, or null for none.

Properties

NameDescription
IsNameGets a value indicating whether FDF writes the value as a name rather than as a text string: the states of check boxes and radio buttons are names (ISO 32000-2, 12.7.5.2). XFDF does not make the distinction.
NameGets the fully qualified name of the field.
ValueGets the first value, or null when the field has none.
ValuesGets the values of the field: none, one, or several for a multi-select list box.

Gets a value indicating whether FDF writes the value as a name rather than as a text string: the states of check boxes and radio buttons are names (ISO 32000-2, 12.7.5.2). XFDF does not make the distinction.

public bool IsName { get; init; }

Property value

bool

Gets the fully qualified name of the field.

public string Name { get; }

Property value

string

Gets the first value, or null when the field has none.

public string? Value { get; }

Property value

string?

Gets the values of the field: none, one, or several for a multi-select list box.

public IReadOnlyList<string> Values { get; }

Property value

IReadOnlyList<string>

Methods

NameDescription
ToString()Returns a string that represents the current object.

Returns a string that represents the current object.

public override string ToString()

Returns

string A string that represents the current object.