Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

DynamicDocumentPaginator::GetPageNumberAsync Method (ContentPosition^)

 

Asynchronously, returns (through the This method raises the GetPageNumberCompleted event) the zero-based page number of the specified ContentPosition.

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

public:
virtual void GetPageNumberAsync(
	ContentPosition^ contentPosition
)

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.

.NET Framework
Available since 3.0
Return to top
Show:
© 2017 Microsoft