This documentation is archived and is not being maintained.

DocumentPaginator.GetPageAsync Method (Int32)

Asynchronously returns (through the GetPageCompleted event) the DocumentPage for the specified page number.

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

public virtual void GetPageAsync (
	int pageNumber
)
public void GetPageAsync (
	int pageNumber
)
public function GetPageAsync (
	pageNumber : int
)
You cannot use methods in XAML.

Parameters

pageNumber

The zero-based page number of the document page that is needed.

Exception typeCondition

ArgumentOutOfRangeException

pageNumber is negative.

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: GetPageAsync(Int32,Object).

This method raises the GetPageCompleted event. The DocumentPage is passed to the event as one of the event arguments. See GetPageAsync(Int32,Object) for how to use this method to get the page.

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0
Show: