.NET Framework Class Library
DocumentViewer.PageCount Property
|
<< Click to Display Table of Contents >> Navigation: Gnostice Document Studio .NET > Reference Documentation > API Reference > Gnostice.Controls.WinForms Namespace > DocumentViewer Class > DocumentViewer Properties > DocumentViewer.PageCount Property |
Gets total number of pages in the loaded document.
Namespace: Gnostice.Controls.WinForms
Assembly: Gnostice.Controls.WinForms (in Gnostice.Controls.WinForms.dll)
Visual Basic |
<LocalizableCategoryAttribute("Misc")> _ |
C# |
[LocalizableCategoryAttribute("Misc")] |
Visual C++ |
public: |
In formats, such as DOCX, where the total number of pages is not explicitly mentioned in the document, this property will reflect that value only after the [!:Documents.Controls.WinForms.DocumentViewer.LastPageRead] has been called by the viewer. Until then, this property will reflect a transient value representing the total number of pages already processed by the viewer. In formats, such as PDF, this property reflects correct value immediately after the document is loaded and displayed.