DocumentLayout.GetPage(Int32) Method
Gets the page of the document layout by the specified index.
Namespace: DevExpress.XtraRichEdit.API.Layout
Assembly: DevExpress.RichEdit.v24.2.Core.dll
NuGet Package: DevExpress.RichEdit.Core
#Declaration
public LayoutPage GetPage(
int pageIndex
)
#Parameters
Name | Type | Description |
---|---|---|
page |
Int32 | An integer that is the index of a requested page. |
#Returns
Type | Description |
---|---|
Layout |
A Layout |
#Remarks
If the document layout is ready and up-to-date, the GetPage method returns the page with the specified index. Otherwise, the document layout is calculated from the beginning, creating pages until a page with the specified index is ready. The DocumentLayout.PageFormatted and DocumentLayout.DocumentFormatted events may occur in this situation.
#Related GitHub Examples
The following code snippets (auto-collected from DevExpress Examples) contain references to the GetPage(Int32) method.
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.