GetDisplayListAsync(Int32, DisplayLayers, CancellationToken) Method

Definition

Assembly Broadside.Viewer.dll

Returns a page's display list, built off the UI thread (or after a yield in cooperative mode) and kept in the document's cache, so every tile of the page at every zoom replays the same list.

public ValueTask<DisplayList> GetDisplayListAsync(int pageIndex, DisplayLayers layers = DisplayLayers.Content | DisplayLayers.Annotations | DisplayLayers.FormFields | DisplayLayers.All, CancellationToken cancellationToken = default(CancellationToken))

Parameters

pageIndex
Int32

The zero-based page.

layers
DisplayLayers

The layers the list holds.

cancellationToken
CancellationToken

Stops the build at its next check (every 1,024 operators and inside long image decodes).

Returns

Remarks

ISO 32000-2 §8.2 and §12.5 (layers).