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

IRichEditDocumentServer.LayoutUnit Property

Gets or sets a unit of measure used for a document model layout.

Namespace: DevExpress.XtraRichEdit

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

NuGet Package: DevExpress.RichEdit.Core

#Declaration

DocumentLayoutUnit LayoutUnit { get; set; }

#Property Value

Type Description
DocumentLayoutUnit

One of the DocumentLayoutUnit enumeration values.

Available values:

Name Description
Document

Specifies documents (one three-hundredths of an inch) as measurement units.

Twip

Specifies twips (1,440 twips equal one inch, and 567 twips equal one centimeter) as measurement units.

Pixel

Specifies pixels as measurement units.

#Remarks

To improve text rendering and the overall display appearance, set the LayoutUnit to DocumentLayoutUnit.Pixel. For a more accurate layout, specify DocumentLayoutUnit.Twip as the unit of measurement.

With the RichEditControlCompatibility.EnableLegacyLayoutEngine property set to false, the LayoutUnit property doesn’t affect the document model layout calculation. Set the RichEditControlCompatibility.EnableLegacyLayoutEngine property set to true to manage the document layout manually.

See Also