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

TListItem.Position

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

Declaration

Source position: comctrls.pp line 1078

public property TListItem.Position : TPoint
  read GetPosition
  write SetPosition;

Description

Position is a TPoint property with the coordinates where the list item is displayed on its ListView control. The property value is read from and written to the widgetset class instance for the ListView control when its handle has been allocated. The X and Y members in the property are used as the values for the Top and Left properties (respectively). Changing the values in the X and Y members, or in Top and Left, cause the widgetset class to be notified of the new value(s).

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

See also

TListItem.Left

  

The position of the Left side of the list item.

TListItem.Top

  

Top coordinate for the list item.

TListItem.Index

  

Ordinal position for the list item in its TListItems container.

TListItem.ListView

  

The ListView in which this Item is found.

TListItem.Owner

  

Container that is the Owner of the list item.

TListItems

  

Implements a container for list items on a list view control.


Version 3.2 Generated 2024-02-25 Home