Vcl.ComCtrls.TCustomListView.TopItem

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property TopItem: TListItem read GetTopItem;

C++

__property TListItem* TopItem = {read=GetTopItem};

Properties

Type Visibility Source Unit Parent
property public
Vcl.ComCtrls.pas
Vcl.ComCtrls.hpp
Vcl.ComCtrls TCustomListView

Description

Indicates the topmost visible item in the list view.

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.

See Also