[Overview][Constants][Types][Classes][Procedures and functions][Index] Reference for unit 'ComCtrls' (#lcl)

TListItem.Top

Top coordinate for the list item.

Declaration

Source position: comctrls.pp line 1083

public property TListItem.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

TListItem.Position

  

The coordinates where the list item is located on its list view control.

TListItem.Index

  

Ordinal position for the list item in its TListItems container.

TListItem.Left

  

The position of the Left side of the list item.

TCustomListView.DrawItem

  

Draws the specified list item with a given state.


Version 3.2 Generated 2024-02-25 Home