officefileapi-devexpress-dot-xtrarichedit-dot-richeditdocumentserver-8a82a703.md
Provides access to the document layout.
Namespace : DevExpress.XtraRichEdit
Assembly : DevExpress.RichEdit.v25.2.Core.dll
NuGet Package : DevExpress.RichEdit.Core
public DocumentLayout DocumentLayout { get; }
Public ReadOnly Property DocumentLayout As DocumentLayout
| Type | Description |
|---|---|
| DocumentLayout |
A DocumentLayout object.
|
The DocumentLayout property provides access to properties and methods of the Layout API.
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the DocumentLayout property.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.
word-document-api-use-layout-api-to-manage-document-pages/CS/Program.cs#L37
{
var documentLayout = rtfProcessor.DocumentLayout;
int pageCount = documentLayout.GetPageCount();
word-document-api-use-layout-api-to-manage-document-pages/VB/Program.vb#L27
Function GetPageCount(ByVal rtfProcessor As RichEditDocumentServer) As Integer
Dim documentLayout = rtfProcessor.DocumentLayout
Dim pageCount As Integer = documentLayout.GetPageCount()
See Also