Back to Devexpress

DocumentLayout Class

officefileapi-devexpress-dot-xtrarichedit-dot-api-dot-layout-a4b4149e.md

latest2.8 KB
Original Source

DocumentLayout Class

Provides access to the Layout API.

Namespace : DevExpress.XtraRichEdit.API.Layout

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

NuGet Package : DevExpress.RichEdit.Core

Declaration

csharp
public class DocumentLayout :
    IDisposable
vb
Public Class DocumentLayout
    Implements IDisposable

The following members return DocumentLayout objects:

LibraryRelated API Members
WinForms ControlsRichEditControl.DocumentLayout
WPF ControlsRichEditControl.DocumentLayout
Office File APIRichEditDocumentServer.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

IDisposable

Inheritance

Object DocumentLayout

See Also

DocumentLayout Members

Layout API (WinForms Rich Text Editor)

Layout API (WPF Rich Text Editor)

DevExpress.XtraRichEdit.API.Layout Namespace