GetCurrentPage(in Viewport) Method

Definition

Assembly Broadside.Viewer.dll

Returns the page a viewer reports as current: in the spread at the viewport's centre, the page nearest the centre across the strip.

public int GetCurrentPage(in Viewport viewport)

Parameters

viewport
Viewport

The viewport.

Returns

Int32
The zero-based page, or -1 when the layout has no pages.