.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+

MailMergeOptions.CopyTemplateStyles Property

Gets or sets whether all styles contained in the template are copied to the resulting document.

Namespace: DevExpress.XtraRichEdit.API.Native

Assembly: DevExpress.RichEdit.v21.2.Core.dll


bool CopyTemplateStyles { get; set; }

Property Value

Type Description

true to copy all styles to the merged document; otherwise, false.


When the CopyTemplateStyles property it is set to true, all styles contained in the document that serves as the template for the mail merge, are copied to the resulting document.

The RichEditMailMergeOptions class (an instance of this class is accessible via the RichEditControlOptionsBase.MailMerge) does not implement this property. The CopyTemplateStyles property value only affects the current mail merge operation, for which new MailMergeOptions settings are specified. It cannot be set for the RichEditControl or RichEditDocumentServer by default.

See Also