GetPageNumber Method

DynamicDocumentPaginator.GetPageNumber Method (ContentPosition)


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

Namespace:   System.Windows.Documents
Assembly:  PresentationCore (in PresentationCore.dll)

public abstract int GetPageNumber(
	ContentPosition contentPosition


Type: System.Windows.Documents.ContentPosition

The content position whose page number is needed.

Return Value

Type: System.Int32

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

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.

.NET Framework
Available since 3.0
Return to top
© 2016 Microsoft