This documentation is archived and is not being maintained.

DocumentPaginator.ComputePageCount Method

Forces a pagination of the content, updates PageCount with the new total, and sets IsPageCountValid to true.

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

public virtual void ComputePageCount ()
public void ComputePageCount ()
public function ComputePageCount ()
You cannot use methods in XAML.

IsPageCountValid will be true immediately after this is called. If content is modified or PageSize is changed after this method is called, IsPageCountValid will likely revert to false.

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: