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

RichEditMailMergeOptions.CustomSeparators Property

Allows you to specify group and decimal separators used in a numeric format switch.

Namespace: DevExpress.XtraRichEdit

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


public MailMergeCustomSeparators CustomSeparators { get; }

Property Value

Type Description

A MailMergeCustomSeparators object.

Property Paths

You can access this nested property as listed below:

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


If custom separators are specified, they are used instead of separators which are specific for the current locale.

Consider the situation when the separators used in format switches differ from separators defined for the current locale. For example, the numeric format switch uses a comma as a decimal separator while the current locale uses a dot. Then the following field will be displayed incorrectly:

MERGEFIELD MyNumber ##,##

Instead of, say, "7.65" it will show "8".

To fix the problem, use the CustomSeparators property and set the MailMergeCustomSeparators.MaskDecimalSeparator to "," (comma). Subsequently the format string will be parsed as expected and the display will be "7.65".

See Also