Back to Devexpress

RichEditControlCompatibility.EnableMSWordCompatibleFieldParser Property

officefileapi-devexpress-dot-xtrarichedit-dot-richeditcontrolcompatibility-f191709a.md

latest2.6 KB
Original Source

RichEditControlCompatibility.EnableMSWordCompatibleFieldParser Property

Enables changing parsing rules for nested fields.

Namespace : DevExpress.XtraRichEdit

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

NuGet Package : DevExpress.RichEdit.Core

Declaration

csharp
[DefaultValue(false)]
public static bool EnableMSWordCompatibleFieldParser { get; set; }
vb
<DefaultValue(False)>
Public Shared Property EnableMSWordCompatibleFieldParser As Boolean

Property Value

TypeDefaultDescription
Booleanfalse

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 CodeField Result if EnableMSWordCompatibleFieldParser = trueField Result if EnableMSWordCompatibleFieldParser = false

See Also

Fields in Rich Text Documents

RichEditControlCompatibility Class

RichEditControlCompatibility Members

DevExpress.XtraRichEdit Namespace