Class FormFieldCollection
Observable collection of form fields
Inheritance
Implements
Namespace: IronSoftware
Assembly: IronPdf.dll
Syntax
public class FormFieldCollection : ObservableCollection<IFormField>, IFormFieldCollection, IList<IFormField>, ICollection<IFormField>, IEnumerable<IFormField>, IEnumerable
Properties
IsReadOnly
Declaration
public bool IsReadOnly { get; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
Methods
Add(IFormField)
Declaration
public void Add(IFormField item)
Parameters
| Type | Name | Description |
|---|---|---|
| IFormField | item |
Clear()
Declaration
public void Clear()
DisableFormFontFallback()
Suppresses the automatic font fallback embed for non-ASCII form values without registering any replacement font. Zero bytes are added to the document.
Declaration
public void DisableFormFontFallback()
FindFormField(String)
Find a form field with the specified name. First tries to match a fully-qualified name. If a fully-qualified match cannot be found, then partial name matches are tried.
Declaration
public IFormField FindFormField(string Name)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | Name | Form field name |
Returns
| Type | Description |
|---|---|
| IFormField | Form field with the specified name |
GetHashCode()
Declaration
public override int GetHashCode()
Returns
| Type | Description |
|---|---|
| System.Int32 |
Remove(IFormField)
Declaration
public bool Remove(IFormField item)
Parameters
| Type | Name | Description |
|---|---|---|
| IFormField | item |
Returns
| Type | Description |
|---|---|
| System.Boolean |
RemoveAt(Int32)
Declaration
public void RemoveAt(int index)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | index |
SetFormFont(String, Byte[], Boolean)
Sets the document-wide font for subsequent form field fills on this document. When set, the engine skips the automatic font fallback embed for form values that contain non-ASCII characters.
Declaration
public void SetFormFont(string fontName, byte[] fontData, bool forceEmbed = false)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | fontName | PDF font name as it appears in the document's /DR /Font dictionary |
| System.Byte[] | fontData | Raw TrueType/OpenType bytes; pass null or empty for name-only mode (the font must already be embedded in the document) |
| System.Boolean | forceEmbed | When true, embed |