[]
Gets the total number of the pages in the print document.
public int PageCount { get; }
Public ReadOnly Property PageCount As Integer
The value returned is accurate only while the document is printing. Before or after a document is done printing, this property returns zero.