Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

RichEditControlCompatibility.EnableDirectWriteMeasurement Property

Gets or sets whether to use DWrite to measure document text.

Namespace: DevExpress.XtraRichEdit

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

NuGet Package: DevExpress.RichEdit.Core

#Declaration

[DefaultValue(true)]
public static bool EnableDirectWriteMeasurement { get; set; }

#Property Value

Type Default Description
Boolean true

true, to use DWrite instead of GDI; otherwise, false.

#Remarks

Starting from v19.1, the RichEditControl uses DWrite technology to measure document text and succesfully process East-Asian and Arabic languages.

After the upgrade, your documents may look different than in previous releases. Use the EnableDirectWriteMeasurement property to restore the previous behavior and use GDI to measure document text. The property should be set on the application startup. Refer to the How to: Perform Actions On Application Startup topic for details.

See Also