Επεξεργασία

Κοινή χρήση μέσω


DynamicDocumentPaginator.GetPageNumber(ContentPosition) Method

Definition

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.

Applies to