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

DocumentLayout Class

Provides access to the Layout API.

Namespace: DevExpress.XtraRichEdit.API.Layout

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

Declaration

public class DocumentLayout :
    IDisposable

The following members accept/return DocumentLayout objects:

Library Related API Members
WinForms Controls RichEditControl.DocumentLayout
WPF Controls RichEditControl.DocumentLayout
Office File API RichEditDocumentServer.DocumentLayout

Remarks

The DocumentLayout class is the starting point for the Layout API. Methods of the DocumentLayout class enable access to layout elements of the document. Events of this class are raised during the process of layout recalculation, providing essential information on the process.

Use the RichEditControl.DocumentLayout (WinForms) or the RichEditControl.DocumentLayout property (WPF) to get the DocumentLayout object.

Document elements on the document layout level are measured in DocumentLayoutUnit.Twip (1 inch is equal to 1440 twips) on Windows OS, on Linux OS - in DocumentLayoutUnit.Pixel.

Inheritance

Object
DocumentLayout
See Also