Skip to main content
Box

DocumentLayout.GetPage(Int32) Method

Gets the page of the document layout by the specified index.

Namespace: DevExpress.XtraRichEdit.API.Layout

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

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

Declaration

public LayoutPage GetPage(
    int pageIndex
)

Parameters

Name Type Description
pageIndex Int32

An integer that is the index of a requested page.

Returns

Type Description
LayoutPage

A LayoutPage object that is the page of the document 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.

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.

See Also