Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TdxCustomPreview.PageCount Property

Specifies the number document pages available for viewing.

#Declaration

Delphi
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