Skip to main content

RichEditControlCompatibility.EnableLegacyLayoutEngine Property

Gets or sets whether to restore the previous document layout calculation.

Namespace: DevExpress.XtraRichEdit

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

NuGet Packages: DevExpress.RichEdit.Core, DevExpress.Win.Navigation

Declaration

public static bool EnableLegacyLayoutEngine { get; set; }

Property Value

Type Description
Boolean

true to enable the legacy layout engine; otherwise, false.

Remarks

In versions earlier v.18.1, the document layout was changed when printing or exporting to PDF. The issue is caused by different measure units used to calculate the display and printout layouts. Depending on the expected result, you could overcome the difference by setting the LayoutUnit property to DocumentLayoutUnit.Twip or DocumentLayoutUnit.Document.

With the 18.1. release, the RichEditControl converts to WISYWIG. The documents now look the same when displaying, printing or exporting to PDF. The ‘RichEditControl.LayoutUnit` property has no effect.

After the upgrade, your documents may look different than in previous releases. Use the RichEditControlCompatibility.EnableLegacyLayoutEngine property to restore the previous behavior and manage the document layout manually. The property should be set on application startup. Refer to the How to: Perform Actions On Application Startup topic for details.

Note

The EnableLegacyLayoutEngine value is always false on Linux operation system.

See Also