This documentation is archived and is not being maintained.

DocumentPaginator.GetPage Method

When overridden in a derived class, gets the DocumentPage for the specified page number.

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

public abstract DocumentPage GetPage (
	int pageNumber
)
public abstract DocumentPage GetPage (
	int pageNumber
)
public abstract function GetPage (
	pageNumber : int
) : DocumentPage
You cannot use methods in XAML.

Parameters

pageNumber

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

Return Value

The DocumentPage for the specified pageNumber, or DocumentPage.Missing if the page does not exist.

Exception typeCondition

ArgumentOutOfRangeException

pageNumber is negative.

If pages prior to pageNumber have not been formatted, they will be paginated synchronously prior to returning the requested page.

GetPageAsync provides similar functionality as GetPage, but for asynchronous operation.

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: