DynamicDocumentPaginator::GetPageNumberAsync Method (ContentPosition^)
Asynchronously, returns (through the This method raises the GetPageNumberCompleted event) the zero-based page number of the specified ContentPosition.
Assembly: PresentationCore (in PresentationCore.dll)
Parameters
- contentPosition
-
Type:
System.Windows.Documents::ContentPosition^
The content position whose page number is needed.
The only way to cancel the asynchronous operation of this method is to cancel all asynchronous operations. Contrast this with the other overload of this method: GetPageNumberAsync(ContentPosition^, Object^).
This method raises the GetPageNumberCompleted event. The page number is passed to the event as one of the event arguments. See GetPageNumberAsync(ContentPosition^, Object^) for how to use this method to get the page number.
Available since 3.0