.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+

IRichEditDocumentServer.LayoutUnit Property

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

Namespace: DevExpress.XtraRichEdit

Assembly: DevExpress.RichEdit.v20.1.Core.dll

Declaration

DocumentLayoutUnit LayoutUnit { get; set; }
Property LayoutUnit As DocumentLayoutUnit

Property Value

Type Description
DocumentLayoutUnit

One of the DocumentLayoutUnit enumeration values.

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