MailMergeOptions

MailMergeOptions class

Represents options for the mail merge functionality.

public class MailMergeOptions

Constructors

NameDescription
MailMergeOptions()The default constructor.

Properties

NameDescription
CleanupOptions { get; set; }Gets or sets a set of flags that specify what items should be removed during mail merge.
CleanupParagraphsWithPunctuationMarks { get; set; }Gets or sets a value indicating whether paragraphs with punctuation marks are considered as empty and should be removed if the RemoveEmptyParagraphs option is specified.
MergeDuplicateRegions { get; set; }Gets or sets a value indicating whether all of the document mail merge regions with the name of a data source should be merged while executing of a mail merge with regions against the data source or just the first one.
MergeWholeDocument { get; set; }Gets or sets a value indicating whether fields in whole document are updated while executing of a mail merge with regions.
PreserveUnusedTags { get; set; }Gets or sets a value indicating whether the unused “mustache” tags should be preserved.
RegionEndTag { get; set; }Gets or sets a mail merge region end tag.
RegionStartTag { get; set; }Gets or sets a mail merge region start tag.
RestartListsAtEachSection { get; set; }Gets or sets a value indicating whether lists are restarted at each section after executing of a mail merge.
RetainFirstSectionStart { get; set; }Gets or sets a value indicating whether the section start of the first document section and its copies for subsequent data source rows are retained during mail merge or updated according to MS Word behaviour.
TrimWhitespaces { get; set; }Gets or sets a value indicating whether trailing and leading whitespaces are trimmed from mail merge values.
UnconditionalMergeFieldsAndRegions { get; set; }Gets or sets a value indicating whether merge fields and merge regions are merged regardless of the parent IF field’s condition.
UseNonMergeFields { get; set; }When true, specifies that in addition to MERGEFIELD fields, mail merge is performed into some other types of fields and also into “{{fieldName}}” tags.
UseWholeParagraphAsRegion { get; set; }Gets or sets a value indicating whether whole paragraph with TableStart or TableEnd field or particular range between TableStart and TableEnd fields should be included into mail merge region.

See Also