Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

RichEditMailMergeOptions.FieldNameFormatString Property

Specifies the field format string.

Namespace: DevExpress.XtraRichEdit

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

NuGet Package: DevExpress.RichEdit.Core

#Declaration

[Browsable(false)]
public string FieldNameFormatString { get; set; }

#Property Value

Type Description
String

A String.Format value that specifies the field format.

#Property Paths

You can access this nested property as listed below:

Object Type Path to FieldNameFormatString
RichEditControlOptionsBase
.MailMerge .FieldNameFormatString

#Remarks

When the RichEditMailMergeOptions.ViewMergedData property is set to false, the RichEditControl or RichEditDocumentServer displays the raw format strings of document fields. Use the FieldNameFormatString property to change this field format.

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

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