Returns the total number of pages in the image file that is currently being displayed.
Image Edit control
object.PageCount
Long
If an image is not being displayed, the PageCount property returns the total number of pages in the image file specified in the Image property.
If an image is not being displayed and the Image property does not contain the filename of an image, the PageCount property generates an error.
Available at run-time as read-only.
Image Page topic in Imaging Concepts
Image property
Page property