Type Default Value Read Only Description
Long   0 No The page number of the current page.




This property holds the current Page Number. The current page is the one that receives new objects as they are added to the document.

For example, the methods AddText, AddLine, AddImage, FrameRect and FillRect all operate on the current page.

When you change this property, the Pos property is reset to the top left of the current Rect.

Note that the PageNumber property is not the same as the Page property. Page holds an Object ID typically returned from a call to AddPage. PageNumber indicates the page using an index ranging between one and the PageCount.

Either the Page or the PageNumber property can be used to set the current page.

If no page is specified, the current page is taken to be the first page in the document.