This documentation is archived and is not being maintained.

FlowDocumentReader.PageNumber Property

Gets the page number for the currently displayed page.

Namespace: System.Windows.Controls
Assembly: PresentationFramework (in presentationframework.dll)
XML Namespace:

Public ReadOnly Property PageNumber As Integer
Dim instance As FlowDocumentReader
Dim value As Integer

value = instance.PageNumber

/** @property */
public int get_PageNumber ()

public function get PageNumber () : int

You cannot use this property in XAML.

Property Value

The page number for the currently displayed page. This property has no default value.

Flow content does not have any inherent notion of a fixed number of pages; the contents of a FlowDocument are dynamically organized into a set of display pages, the number of which is based on current display and layout characteristics. For example, re-sizing a FlowDocumentReader or changing the Zoom level affects the number of display pages that the content is organized into.

When the FlowDocumentReader is in the SingleColumnScroll viewing mode, the page count and the current page number are always 1 (assuming any content has been loaded).

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