DynamicDocumentPaginator.GetPageNumber(ContentPosition) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
When overridden in a derived class, returns the zero-based page number of the specified ContentPosition.
public:
abstract int GetPageNumber(System::Windows::Documents::ContentPosition ^ contentPosition);
public abstract int GetPageNumber (System.Windows.Documents.ContentPosition contentPosition);
abstract member GetPageNumber : System.Windows.Documents.ContentPosition -> int
Public MustOverride Function GetPageNumber (contentPosition As ContentPosition) As Integer
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.