listview CountPerPage method
Return to Introduction  Previous page  Next page
Applies to
acListView and acDBListView components.  

function CountPerPage: Integer;  

The CountPerPage function returns the number of items that can fit vertically in the visible area of a list-view control when in list or report view.  

1. Only fully visible items are counted;  
2. If the current view is icon or small icon view, the return value is the total number of items in the list-view control.