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

TListItem.Left

The position of the Left side of the list item.

Declaration

Source position: comctrls.pp line 1075

public property TListItem.Left : Integer
  read GetLeft
  write SetLeft;

Description

Left is an Integer property which contains the coordinate for the left edge of 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 X 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 Top for the coordinate where the top 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.Top

  

Top coordinate for the list item.

TListItem.Index

  

Ordinal position for the list item in its TListItems container.

TCustomListView.DrawItem

  

Draws the specified list item with a given state.


Version 3.2 Generated 2024-02-25 Home