Class MailMergeTemplateAnalysis
Reports the static structure and source compatibility of a mail-merge template.
Inherited Members
Namespace: DRIT.Document
Assembly: DRIT.Document.dll
Syntax
public sealed class MailMergeTemplateAnalysis
Properties
Diagnostics
Gets structural and source-compatibility diagnostics.
Declaration
public IReadOnlyList<MailMergeDiagnostic> Diagnostics { get; }
Property Value
| Type | Description |
|---|---|
| IReadOnlyList<MailMergeDiagnostic> |
DuplicateFields
Gets distinct fields that occur more than once.
Declaration
public IReadOnlyList<string> DuplicateFields { get; }
Property Value
| Type | Description |
|---|---|
| IReadOnlyList<string> |
Fields
Gets scalar field occurrences in first-occurrence order.
Declaration
public IReadOnlyList<MailMergeFieldInfo> Fields { get; }
Property Value
| Type | Description |
|---|---|
| IReadOnlyList<MailMergeFieldInfo> |
IsValid
Gets a value indicating whether no error-level diagnostics were found.
Declaration
public bool IsValid { get; }
Property Value
| Type | Description |
|---|---|
| bool |
MissingFields
Gets distinct fields not satisfied by the supplied data source.
Declaration
public IReadOnlyList<string> MissingFields { get; }
Property Value
| Type | Description |
|---|---|
| IReadOnlyList<string> |
Regions
Gets repeating regions in opening-marker order.
Declaration
public IReadOnlyList<MailMergeRegionInfo> Regions { get; }
Property Value
| Type | Description |
|---|---|
| IReadOnlyList<MailMergeRegionInfo> |
UnusedRegions
Gets distinct regions not satisfied by the supplied data source.
Declaration
public IReadOnlyList<string> UnusedRegions { get; }
Property Value
| Type | Description |
|---|---|
| IReadOnlyList<string> |