Skip to main content
All docs
V24.2

SpreadsheetCompatibilityOptions.EnableLegacyLayoutEngine Property

Enables the legacy layout calculation engine. This is a dependency property.

Namespace: DevExpress.Xpf.Spreadsheet

Assembly: DevExpress.Xpf.Spreadsheet.v24.2.dll

NuGet Package: DevExpress.Wpf.Spreadsheet

Declaration

public bool EnableLegacyLayoutEngine { get; set; }

Property Value

Type Description
Boolean

true to enable the legacy layout engine; otherwise, false. The default value is false.

Property Paths

You can access this nested property as listed below:

Object Type Path to EnableLegacyLayoutEngine
SpreadsheetControlOptions
.Compatibility .EnableLegacyLayoutEngine

Remarks

In v20.2, the WPF Spreadsheet control introduced a new layout calculation engine with the following advantages:

  • We increased layout calculation speed and improved layout accuracy.

  • The control’s render and scroll performance was optimized.

  • The Spreadsheet now exports documents to PDF faster and produces a more precise layout (see the SpreadsheetCompatibilityOptions.EnableLegacyPdfExport property for details).

  • A printed document’s layout is calculated more accurately (see the SpreadsheetCompatibilityOptions.EnableLegacyPrintLayout property for details).

  • We enhanced printing options: titles (rows and columns that repeat on every page) outside the print area can now be printed.

  • The Spreadsheet control can display cell text with the CenterContinuous alignment.

  • You can display, print, and export (to PDF) cells with rich text.

  • Headers and footers support rich text and inline images.

After the update, the way the Spreadsheet control renders and prints certain documents can change. Activate the EnableLegacyLayoutEngine property to disable the new layout engine and its features.

<dxsps:SpreadsheetControl.Options>
    <dxsps:SpreadsheetControlOptions>
        <dxsps:SpreadsheetControlOptions.Compatibility>
            <dxsps:SpreadsheetCompatibilityOptions EnableLegacyLayoutEngine="True" />
        </dxsps:SpreadsheetControlOptions.Compatibility>
    </dxsps:SpreadsheetControlOptions>
</dxsps:SpreadsheetControl.Options>
See Also