Skip to main content
A newer version of this page is available. .
.NET Framework 4.5.2+
Box

DocumentLayout.GetPageAsync(Int32, Action<LayoutPage>) Method

Calculates page layout asynchronously for the specified page.

Namespace: DevExpress.XtraRichEdit.API.Layout

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

NuGet Package: DevExpress.RichEdit.Core

Declaration

public Task GetPageAsync(
    int pageIndex,
    Action<LayoutPage> callback
)

Parameters

Name Type Description
pageIndex Int32

An integer that is the index of the page for which to calculate layout.

callback Action<LayoutPage>

A Action that is the action to run when page formatting completes.

Returns

Type Description
Task

A Task that is an asynchronous operation being performed.

See Also