.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 >

.NET Framework Class Library

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)

Syntax

Visual Basic

<LocalizableCategoryAttribute("Misc")> _
<LocalizableDescriptionAttribute("pageCountDesc")> _
Public ReadOnly Property PageCount As Integer
 Get

C#

[LocalizableCategoryAttribute("Misc")]
[LocalizableDescriptionAttribute("pageCountDesc")]
public int PageCount { get; }

Visual C++

public:
[LocalizableCategoryAttribute(L"Misc")]
[LocalizableDescriptionAttribute(L"pageCountDesc")]
virtual property int PageCount {
 int get () sealed;
}

Implements

IView.PageCount

Remarks

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.

See Also

DocumentViewer Class

DocumentViewer Members

Gnostice.Controls.WinForms Namespace