ProjectGetPageCount Method

Returns page count for the project to be rendered using default Timescale(Days).

Namespace:  Aspose.Tasks
Assembly:  Aspose.Tasks (in Aspose.Tasks.dll) Version: 21.10
Syntax
public int GetPageCount()

Return Value

Type: Int32
Page count to be rendered.
Examples
Shows how to get page count for different timescales.
var project = new Project(DataDir + "GetNumberOfPages.mpp");

// Get number of pages, Timescale.Months, Timescale.ThirdsOfMonths
var pageCount = project.GetPageCount();
Console.WriteLine("Page count: " + pageCount);
pageCount = project.GetPageCount(Timescale.Months);
Console.WriteLine("Page count (Month): " + pageCount);
pageCount = project.GetPageCount(Timescale.ThirdsOfMonths);
Console.WriteLine("Page count (Thirds of Months): " + pageCount);
See Also