Skip to main content

DXRichEditMailMergeOptions.FieldNameFormatString Property

Specifies the field format string. This is a dependency property.

Namespace: DevExpress.Xpf.RichEdit

Assembly: DevExpress.Xpf.RichEdit.v24.1.dll

NuGet Package: DevExpress.Wpf.RichEdit

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
RichEditControl
.MailMergeOptions .FieldNameFormatString

Remarks

When the DXRichEditMailMergeOptions.ViewMergedData property is set to false, the RichEditControl displays 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:

    <dxre:RichEditControl CommandBarStyle="Ribbon"
                          x:Name="richEditControl">
        <dxre:RichEditControl.MailMergeOptions>
            <dxre:DXRichEditMailMergeOptions FieldNameFormatString="({0})"/>
        </dxre:RichEditControl.MailMergeOptions>
    </dxre:RichEditControl>
See Also