Gets the specified page from given XPS document.

Namespace: FirstFloor.Documents
Assembly: FirstFloor.Documents (in FirstFloor.Documents.dll) Version: 2.5.0.0 (2.5.1.0)

Syntax

C#
public static PageContent GetPage(
	this XpsDocument document,
	int pageNumber
)
Visual Basic
<ExtensionAttribute> _
Public Shared Function GetPage ( _
	document As XpsDocument, _
	pageNumber As Integer _
) As PageContent
Visual C++
[ExtensionAttribute]
public:
static PageContent^ GetPage(
	XpsDocument^ document, 
	int pageNumber
)

Parameters

document
Type: FirstFloor.Documents..::..XpsDocument
The document.
pageNumber
Type: System..::..Int32
The page number.

Return Value

The page or null if the page doesn't exist.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type XpsDocument. When you use instance method syntax to call this method, omit the first parameter. For more information, see or .

See Also