TSRichViewEdit.LastPageNo (read-only)

<< Click to display table of contents >>

TSRichViewEdit.LastPageNo (read-only)

Returns the index of the last page that will be printed, from 1.

property LastPageNo: Integer;

This property takes the properties MinPrintedItemNo and MaxPrintedItemNo into account. By default, when these properties define the range including the whole document, LastPageNo returns PageCount. If MaxPrintedItemNo is inside the items range (0..RichViewEdit.ItemCount-1), this property returns the index of the page containing the MaxPrintedItemNo-th item (see GetPageNo).