This documentation is archived and is not being maintained.

GetPageNumberCompletedEventArgs Constructor

Initializes a new instance of the GetPageNumberCompletedEventArgs class.

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

public GetPageNumberCompletedEventArgs(
	ContentPosition contentPosition,
	int pageNumber,
	Exception error,
	bool cancelled,
	Object userState
You cannot use constructors in XAML.


Type: System.Windows.Documents.ContentPosition

The contentPosition parameter passed to GetPageNumberAsync.

Type: System.Int32

The page number where the contentPosition appears.

Type: System.Exception

The exception that occurred during the asynchronous operation; or NULL if there were no errors.

Type: System.Boolean

true if the asynchronous operation was canceled; otherwise, false.

Type: System.Object

The unique userState parameter passed to GetPageNumberAsync.

The asynchronous operation can be canceled by calling CancelAsync.

Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5, 3.0