Skip to main content
A newer version of this page is available. .
.NET Framework 4.5.2+

RichEditControlCompatibility.EnableLegacyLayoutEngine Property

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

Namespace: DevExpress.XtraRichEdit

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

Declaration

public static bool EnableLegacyLayoutEngine { get; set; }

Property Value

Type Description
Boolean

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

The default value is 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.

See Also