Skip to main content
Box

DocumentLayout Class

Provides access to the Layout API.

Namespace: DevExpress.XtraRichEdit.API.Layout

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

NuGet Packages: DevExpress.RichEdit.Core, DevExpress.Win.Navigation

Declaration

public class DocumentLayout :
    IDisposable

The following members 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.

Implements

Inheritance

Object
DocumentLayout
See Also