GetPageMetricsAsync(Int32, CancellationToken) Method

Definition

Assembly Broadside.Viewer.dll

Returns a page's geometry, loading the page first if needed (a remote page is prefetched), and caches it.

public ValueTask<PageMetrics> GetPageMetricsAsync(int pageIndex, CancellationToken cancellationToken = default(CancellationToken))

Parameters

pageIndex
Int32

The zero-based page.

cancellationToken
CancellationToken

Stops the load.

Returns

ValueTask<PageMetrics>
The geometry.

Remarks

ISO 32000-2 §7.7.3.3 and §14.11.2.