Back to Devexpress

RichEditControlCompatibility.EnableDirectWriteMeasurement Property

officefileapi-devexpress-dot-xtrarichedit-dot-richeditcontrolcompatibility-1bf1a7a0.md

latest1.9 KB
Original Source

RichEditControlCompatibility.EnableDirectWriteMeasurement Property

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

Namespace : DevExpress.XtraRichEdit

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

NuGet Package : DevExpress.RichEdit.Core

Declaration

csharp
[DefaultValue(true)]
public static bool EnableDirectWriteMeasurement { get; set; }
vb
<DefaultValue(True)>
Public Shared Property EnableDirectWriteMeasurement As Boolean

Property Value

TypeDefaultDescription
Booleantrue

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

RichEditControlCompatibility Class

RichEditControlCompatibility Members

DevExpress.XtraRichEdit Namespace