Back to Devexpress

RichEditMailMergeOptions.FieldNameFormatString Property

officefileapi-devexpress-dot-xtrarichedit-dot-richeditmailmergeoptions-0ff2c651.md

latest2.3 KB
Original Source

RichEditMailMergeOptions.FieldNameFormatString Property

Specifies the field format string.

Namespace : DevExpress.XtraRichEdit

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

NuGet Package : DevExpress.RichEdit.Core

Declaration

csharp
[Browsable(false)]
public string FieldNameFormatString { get; set; }
vb
<Browsable(False)>
Public Property FieldNameFormatString As String

Property Value

TypeDescription
String

A String.Format value that specifies the field format.

|

Property Paths

You can access this nested property as listed below:

Object TypePath 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:

csharp
wordProcessor.Options.MailMerge.FieldNameFormatString = "({0})";
vb
wordProcessor.Options.MailMerge.FieldNameFormatString = "({0})"

See Also

RichEditMailMergeOptions Class

RichEditMailMergeOptions Members

DevExpress.XtraRichEdit Namespace