Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

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