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

RichEditMailMergeOptions.FieldNameFormatString Property

Specifies the field format string.

Namespace: DevExpress.XtraRichEdit

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


public string FieldNameFormatString { get; set; }

Property Value

Type Description

A String.Format value that specifies the field format.

Property Paths

You can access this nested property as listed below:

Library Object Type Path to FieldNameFormatString
WinForms Controls SnapControlOptions
WPF Controls RichEditControlOptions
Office File API RichEditControlOptionsBase


When the RichEditMailMergeOptions.ViewMergedData property is set to false, the RichEditControl and RichEditDocumentServer display the merged field in the «FieldName» string format. Use the FieldNameFormatString property to change the field format.

The code sample below shows how to specify the ({0}) format for merged fields:

wordProcessor.Options.MailMerge.FieldNameFormatString = "({0})";
See Also