Back to Devexpress

SpreadsheetCompatibilityOptions.EnableLegacyLayoutEngine Property

wpf-devexpress-dot-xpf-dot-spreadsheet-dot-spreadsheetcompatibilityoptions.md

latest3.4 KB
Original Source

SpreadsheetCompatibilityOptions.EnableLegacyLayoutEngine Property

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

Namespace : DevExpress.Xpf.Spreadsheet

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

NuGet Package : DevExpress.Wpf.Spreadsheet

Declaration

csharp
public bool EnableLegacyLayoutEngine { get; set; }
vb
Public Property EnableLegacyLayoutEngine As Boolean

Property Value

TypeDescription
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 TypePath 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.

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

See Also

SpreadsheetCompatibilityOptions Class

SpreadsheetCompatibilityOptions Members

DevExpress.Xpf.Spreadsheet Namespace