DynamicDocumentPaginator.GetPageNumber(ContentPosition) Method

Definition

When overridden in a derived class, returns the zero-based page number of the specified ContentPosition.

C#
public abstract int GetPageNumber(System.Windows.Documents.ContentPosition contentPosition);

Parameters

contentPosition
ContentPosition

The content position whose page number is needed.

Returns

An Int32 representing zero-based page number where the specified contentPosition appears.

Remarks

If pages prior to the contentPosition have not been formatted, they will be paginated synchronously prior to returning the requested page number.

GetPageNumberAsync provides similar functionality as GetPageNumber, but with asynchronous operation.

Applies to

Produkt Verzie
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10