This documentation is archived and is not being maintained.

FlowDocumentReader.PageCount Property

Gets the current number of display pages for the content hosted by the FlowDocumentReader.

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

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

value = instance.PageCount

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

public function get PageCount () : int

You cannot use this property in XAML.

Property Value

The current number of display pages for the content hosted by the FlowDocumentReader. This property has no default value.

Identifier Field


Metadata Flags


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