Sign in Join
FPDoc Onlineexperiment

TListItem.Top property

Member of TListItempublicIn unit ComCtrls

Top coordinate for the list item.

Declaration

pascal
property Top: Integer read GetTop write SetTop;

Description

Top is an Integer property which contains the top coordinate for the list item on its list view control. The property value is read from and written to the Position property in the list item; it represents the Y member in the TPoint instance. Setting a new value for the property causes the TPoint instance in Position to be re-allocated, and the widgetset class is notified of the change to the value.

Values in Left and Top are used in the TCustomListView.DrawItem method to position the list item on the canvas for the list view control.

Use Left for the coordinate where the left edge of the list item is located.

Use Index to access the ordinal position for the list item in its TListItems container.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.