PageCount Property

Returns the total number of pages in the image file that is currently being displayed.

Applies To

Image Edit control

Syntax

object.PageCount

Data Type

Long

Remarks

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.

See Also

Image Page topic in Imaging Concepts

Image property

Page property