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

RichEditControlCompatibility.EnableMSWordCompatibleFieldParser Property

Enables changing parsing rules for nested fields.

Namespace: DevExpress.XtraRichEdit

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

NuGet Package: DevExpress.RichEdit.Core

#Declaration

[DefaultValue(false)]
public static bool EnableMSWordCompatibleFieldParser { get; set; }

#Property Value

Type Default Description
Boolean false

True, to parse and evaluate nested fields in a way similar to MS Word; otherwise, false to use the legacy parser.

#Remarks

The following table illustrates how the nested fields within the IF field are parsed and evaluated with different EnableMSWordCompatibleFieldParser settings. The document has the DocumentProperties.Creator property set to “Jack the Rabbit” and the DocumentProperties.Title property set to “The Manual of Rabbit Hunting”.

Field Code Field Result if EnableMSWordCompatibleFieldParser = true Field Result if EnableMSWordCompatibleFieldParser = false
EnableMSWordCompatibleFieldParser_Fields EnableMSWordCompatibleFieldParser_True EnableMSWordCompatibleFieldParser_False
See Also