Skip to main content
Box

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

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

Calculates the page layout asynchronously for the specified page and allows task cancellation through the use of a cancellation token.

Namespace: DevExpress.XtraRichEdit.API.Layout

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

NuGet Package: DevExpress.RichEdit.Core

#Declaration

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

#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.

cancellationToken CancellationToken

A cancellation token that should be used to cancel formatting.

#Returns

Type Description
Task

A Task that is an asynchronous operation being performed.

See Also