Skip to main content
Box

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

DocumentLayout Class

Provides access to the Layout API.

Namespace: DevExpress.XtraRichEdit.API.Layout

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

NuGet Package: DevExpress.RichEdit.Core

#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