Xceed Words for .NET v5.0 Documentation
Xceed.Document.NET Assembly / Xceed.Document.NET Namespace / Document Class / GetPageCount Method


In This Topic
    GetPageCount Method
    In This Topic

    Gets the number of pages in the document.

    Syntax
    'Declaration
     
    Public Function GetPageCount() As Integer
    'Usage
     
    Dim instance As Document
    Dim value As Integer
     
    value = instance.GetPageCount()
    public int GetPageCount()

    Return Value

    Returns the number of pages in the current document.
    Remarks

    This is an experimental feature which may not always return the exact page count, but gives a good approximation. Results depends on the pages content.

    Note that calling this method may slow down your application depending on the number of pages and the content of these pages.

    Requirements

    Target Platforms: Windows 11, Windows 10, Windows 7, Windows, 11, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also