RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomListView.ViewOrigin Property

Designates the coordinates of the upper left corner of the list, relative to the visible area of the list view control.

Pascal
property ViewOrigin: TPoint;
C++
__property TPoint ViewOrigin;

Read ViewOrigin to determine the logical origin of the list image. When the list view is not scrolled, ViewOrigin is (0,0). Otherwise, use the x coordinate to determine the number of pixels the view is scrolled horizontally, and the y coordinate to determine the number of pixels the view is scrolled vertically.  

ViewOrigin is only implemented when ViewStyle is vsIcon or vsSmallIcon. For vsReport or vsList, use the TopItem property instead. 

 

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