Sign in Join
FPDoc Onlineexperiment

TListItem class

In unit ComCtrls

Represents the items created in TCustomListView and descendants.

Declaration

pascal
TListItem = class(TPersistent)

Inheritance

  1. TListItem
  2. TPersistent
  3. TObject

Descends from it: TOwnerDataListItem TShellListItem

Description

TListItem is the base class for the Items created in TCustomListView and TListView.

TListItem provides properties which identify the content for the list item, like: Caption, SubItems, Data, Index, ImageIndex, and StateIndex. Other properties indicate the disposition of the item in the control, like: Checked, Cut, DropTarget, Focused, and Selected.

Methods are provided that allow the list item to interact with the control and the widgetset class.

TListItem is the type stored in the TListItems container.

See also

Properties

CaptionpublicCaption - the name given to this item on the list.
CheckedpublicDisplays a check mark to allow the list item to be include in list view operations.
CutpublicIndicates if the list item has been cut from the list but it can be pasted to the clipboard.
DatapublicPointer to arbitrary Data associated with the list item.
DropTargetpublicTrue if the list item is a highlighted drop target in the list view control.
FocusedpublicTrue if the list item is focused on the list view control.
IndexpublicOrdinal position for the list item in its TListItems container.
ImageIndexpublicOrdinal position for the image displayed for the list item.
LeftpublicThe position of the Left side of the list item.
ListViewpublicThe ListView in which this Item is found.
OwnerpublicContainer that is the Owner of the list item.
PositionpublicThe coordinates where the list item is located on its list view control.
SelectedpublicWhether this Item has been Selected (often denoted by a check-mark).
StateIndexpublicOrdinal position for the image used to represent the state for the list item.
SubItemspublicContains text displayed as additional columns on the list view control.
SubItemImagespublicGets the ImageIndex for the sub-item at the specified position.
ToppublicTop coordinate for the list item.

Methods

IsEqualprotectedDetermines if the specified list item has the same values as the current class instance.
IsOwnerDataprotectedDetermines if the list item has an owner with a valid handle.
GetCheckedInternalprotectedTrue if the member variable for the Checked property contains True.
GetOwnerprotectedGets the owner of the class instance.
AssignpublicCopies values from the specified persistent object into the current class instance.
CreatepublicConstructor for the class instance.
DestroypublicDestructor for the class instance.
DeletepublicRemoves the list item from the container.
MakeVisiblepublicMakes the item visible in the list view control which owns the list item.
DisplayRectpublicGets the display rectangle for the specified region of the list item on its list view control.
DisplayRectSubItempublicGets the display rectangle coordinates for a region in the specified sub-item on its list view control.
EditCaptionpublicSelects the list item and displays its editor when possible.
GetStatespublicReturns all the states for the list item.

Inherited

From TPersistent (6)

AssignTo DefineProperties FPOAttachObserver FPODetachObserver FPONotifyObservers GetNamePath

From TObject (40)

AfterConstruction BeforeDestruction CheckDisposed ClassInfo ClassName ClassNameIs ClassParent ClassType CleanupInstance DefaultHandler DefaultHandlerStr Dispatch DispatchStr Disposed DisposeOf Equals FieldAddress Free FreeInstance GetDisposed GetHashCode GetInterface GetInterfaceByStr GetInterfaceEntry GetInterfaceEntryByStr GetInterfaceTable GetInterfaceWeak GetLastCastErrorInfo InheritsFrom InitInstance InstanceSize MethodAddress MethodName newinstance QualifiedClassName SafeCallException StringMessageTable SystemHasExtendedRTTI ToString UnitName

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