Class XfaForm
XML Forms Architecture (XFA) packets associated with an AcroForm.
Inherited Members
Namespace: DRIT.Pdf.Forms
Assembly: DRIT.Pdf.dll
Syntax
public sealed class XfaForm
Properties
FieldNames
Gets the known XFA field names in discovery/insertion order.
Declaration
public string[] FieldNames { get; }
Property Value
| Type | Description |
|---|---|
| string[] |
this[string]
Gets or sets a field value in XFA datasets by field name.
Declaration
public string? this[string fieldName] { get; set; }
Parameters
| Type | Name | Description |
|---|---|---|
| string | fieldName |
Property Value
| Type | Description |
|---|---|
| string |
Methods
Clear()
Clears all in-memory XFA values and templates.
Declaration
public void Clear()
GetFieldTemplate(string)
Returns the XFA template element for the provided field.
Declaration
public XElement GetFieldTemplate(string fieldName)
Parameters
| Type | Name | Description |
|---|---|---|
| string | fieldName |
Returns
| Type | Description |
|---|---|
| XElement |
SetFieldTemplate(string, XElement)
Sets or replaces the template element associated with an XFA field.
Declaration
public void SetFieldTemplate(string fieldName, XElement template)
Parameters
| Type | Name | Description |
|---|---|---|
| string | fieldName | |
| XElement | template |