Class MailMergeOptions
Configures how a mail merge operation handles unmatched fields, missing values, and unused regions.
Inheritance
Namespace: IronWord.Models.MailMerge
Assembly: IronWord.dll
Syntax
public class MailMergeOptions : Object
Constructors
MailMergeOptions()
Declaration
public MailMergeOptions()
Properties
CaseInsensitiveFieldNames
Gets or sets a value indicating whether merge field name lookups should be case-insensitive. Defaults to true to match Microsoft Word's behaviour.
Declaration
public bool CaseInsensitiveFieldNames { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
NullValueReplacement
Gets or sets the value used to substitute a merge field when the data source supplies a null value for it. Defaults to an empty string.
Declaration
public string NullValueReplacement { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
RemoveUnusedFields
Gets or sets a value indicating whether merge fields whose names do not appear in the supplied data source should be removed from the document. Defaults to true.
Declaration
public bool RemoveUnusedFields { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
RemoveUnusedRegions
Gets or sets a value indicating whether TableStart/TableEnd regions
for which no data was supplied should be removed from the document.
Defaults to true.
Declaration
public bool RemoveUnusedRegions { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |