TSRichViewEdit.GetPageLastItemNo

<< Click to display table of contents >>

TSRichViewEdit.GetPageLastItemNo

Returns the index of the last item at the end of the PageNo-th page.

procedure GetPageLastItemNo(PageNo: Integer; var ItemNo, Offs: Integer);

Input parameter

PageNo is a page index, from 1.

Output parameters

ItemNo – index of the item ending this page. This value is in range 0..RichViewEdit.ItemCount-1.

Offs – defines the position in the ItemNo-th item, where the last line on the page ends. For all items except for tables, this is an offset in item:

for text items, this is the index of the character ending the page (from 1)+1,

for non-text items (except for tables), this parameter equals to 1;

for tables, this is the index of the last row on this page (from 0).

See also:

GetPageStartItemNo