RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomListView.TopItem Property

Indicates the topmost visible item in the list view.

Pascal
property TopItem: TListItem;
C++
__property TListItem TopItem;

Read TopItem to determine the first item in the list view that the user can see. TopItem reflects how far the list view has been scrolled. The TopItem property is read-only. 

You can scroll the list view with the Scroll or ScrollBy methods. You can't scroll by setting TopItem, since it is read-only. 

TopItem is only implemented when ViewStyle is vsReport or vsList. For vsIcon and vsSmallIcon view styles, use the ViewOrigin property to determine the scroll position. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!