Class DocumentMailMergeOptions
Configures value binding and fallback behavior during a mail merge.
Inherited Members
Namespace: DRIT.Document
Assembly: DRIT.Document.dll
Syntax
public class DocumentMailMergeOptions
Properties
EmptyRegionBehavior
Gets or sets the behavior for missing or empty repeating regions.
Declaration
public MailMergeEmptyRegionBehavior EmptyRegionBehavior { get; set; }
Property Value
| Type | Description |
|---|---|
| MailMergeEmptyRegionBehavior |
FieldMap
Gets or sets field-name mappings applied before source lookup.
Declaration
public IDictionary<string, string> FieldMap { get; set; }
Property Value
| Type | Description |
|---|---|
| IDictionary<string, string> |
FieldResolver
Gets or sets a custom resolver invoked before standard source lookup.
Declaration
public Func<string, object, string> FieldResolver { get; set; }
Property Value
| Type | Description |
|---|---|
| Func<string, object, string> |
FieldTextFormatter
Gets or sets a final scalar formatter invoked before the field callback.
Declaration
public Func<string, object, string> FieldTextFormatter { get; set; }
Property Value
| Type | Description |
|---|---|
| Func<string, object, string> |
FieldValueConverter
Gets or sets a deterministic conversion hook applied to values after source lookup.
Declaration
public Func<string, object, object> FieldValueConverter { get; set; }
Property Value
| Type | Description |
|---|---|
| Func<string, object, object> |
Formatting
Gets or sets deterministic formatting options applied after conversion.
Declaration
public MailMergeFormattingOptions Formatting { get; set; }
Property Value
| Type | Description |
|---|---|
| MailMergeFormattingOptions |
ImageOptions
Gets or sets the rich image insertion policy.
Declaration
public MailMergeImageOptions ImageOptions { get; set; }
Property Value
| Type | Description |
|---|---|
| MailMergeImageOptions |
InvalidValueBehavior
Gets or sets the behavior when the field value converter throws.
Declaration
public MailMergeInvalidValueBehavior InvalidValueBehavior { get; set; }
Property Value
| Type | Description |
|---|---|
| MailMergeInvalidValueBehavior |
MissingFieldBehavior
Gets or sets the behavior for fields absent from the data source.
Declaration
public MailMergeMissingFieldBehavior MissingFieldBehavior { get; set; }
Property Value
| Type | Description |
|---|---|
| MailMergeMissingFieldBehavior |
NullValueBehavior
Gets or sets behavior for fields resolved to a null.
Declaration
public MailMergeNullValueBehavior NullValueBehavior { get; set; }
Property Value
| Type | Description |
|---|---|
| MailMergeNullValueBehavior |