Skip to main content

TdxCustomPreview.PageCount Property

Specifies the number document pages available for viewing.

Declaration

property PageCount: Integer read; write;

Property Value

Type
Integer

Remarks

You can use this property to limit the number of pages available for viewing and navigation. The page whose index is the PageCount property value minus one is considered the last in the displayed document.

The PageCount property value must be within the range between 0 and the total number of pages within the document. Otherwise, the argument out of range exception is raised.

The maximum PageCount property value for the PDF Viewer can be obtained from its Document.PageCount property. The difference between the Document.PageCount and PageCount property values specifies how many pages with the highest indexes are excluded from viewing and, therefore, unavailable to an end-user.

See Also