Skip to main content
A newer version of this page is available. .

DXRichEditMailMergeOptions.CustomSeparators Property

Provides access to the separators (decimal and group) used in a numeric format switch. This is a dependency property.

Namespace: DevExpress.Xpf.RichEdit

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

Declaration

public MailMergeCustomSeparators CustomSeparators { get; }

Property Value

Type Description
MailMergeCustomSeparators

A MailMergeCustomSeparators object.

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 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