Class PdfAcroField
Represents the base class for all interactive field dictionaries.
public abstract class PdfAcroField : PdfDictionary, ICloneable, IEnumerable<KeyValuePair<string, PdfItem?>>, IEnumerable
- Inheritance
-
PdfAcroField
- Implements
- Derived
- Inherited Members
Constructors
PdfAcroField(PdfDictionary)
Initializes a new instance of the PdfAcroField class. Used for type transformation.
protected PdfAcroField(PdfDictionary dict)
Parameters
dict
PdfDictionary
Properties
DescendantNames
Gets the names of all descendants of this field.
[Obsolete("Use GetDescendantNames")]
public string[] DescendantNames { get; }
Property Value
- string[]
Fields
Gets the collection of fields within this field.
public PdfAcroField.PdfAcroFieldCollection Fields { get; }
Property Value
Flags
Gets the field flags of this instance.
public PdfAcroFieldFlags Flags { get; }
Property Value
HasKids
Indicates whether the field has child fields.
public bool HasKids { get; }
Property Value
this[string]
Gets the field with the specified name.
public PdfAcroField? this[string name] { get; }
Parameters
name
string
Property Value
Name
Gets the name of this field.
public string Name { get; }
Property Value
ReadOnly
Gets or sets a value indicating whether the field is read only.
public bool ReadOnly { get; set; }
Property Value
Value
Gets or sets the value of the field.
public virtual PdfItem? Value { get; set; }
Property Value
Methods
GetAppearanceNames()
Gets the names of all appearance dictionaries of this AcroField.
public string[] GetAppearanceNames()
Returns
- string[]
GetDescendantNames()
Gets the names of all descendants of this field.
public string[] GetDescendantNames()
Returns
- string[]
GetValue(string)
Gets a child field by name.
protected virtual PdfAcroField? GetValue(string name)
Parameters
name
string