Skip to main content

DXRichEditMailMergeOptions.CustomSeparators Property

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

Namespace: DevExpress.Xpf.RichEdit

Assembly: DevExpress.Xpf.RichEdit.v23.2.dll

NuGet Package: DevExpress.Wpf.RichEdit

Declaration

public MailMergeCustomSeparators CustomSeparators { get; }

Property Value

Type Description
MailMergeCustomSeparators

An object that contains custom separator settings.

Property Paths

You can access this nested property as listed below:

Object Type Path to CustomSeparators
RichEditControl
.MailMergeOptions .CustomSeparators

Remarks

If custom separators are specified, they are used instead of separators that are specific to the current locale.

Use the CustomSeparators property 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 is displayed incorrectly:

MERGEFIELD MyNumber ##,##

Instead of “7.65” the field shows “8”.

To fix the problem, use the CustomSeparators property and set the MailMergeCustomSeparators.MaskDecimalSeparator to “,” (comma).

See Also