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

TOwnerDataListItem

[Properties (by Name)] [Methods (by Name)] [Events (by Name)]

List item class used in a list view control when OwnerData (virtual) mode is enabled.

Declaration

Source position: comctrls.pp line 1089

type TOwnerDataListItem = class(TListItem)

protected

  function IsOwnerData; override;

  

Indicates if the virtual list item has an owner collection and allows updates.

public

  procedure SetDataIndex();

  

Sets the index position for the virtual list item and updates the item cache.

  procedure SetOwner();

  

Sets the TListItems container which owns the virtual list item.

end;

Inheritance

TOwnerDataListItem

  

List item class used in a list view control when OwnerData (virtual) mode is enabled.

|

TListItem

  

Represents the items created in TCustomListView and descendants.

|

TPersistent,IFPObserved

|

TObject

Description

TOwnerDataListItem is a TListItem descendant which implements a list item used for a list view control in virtual mode. It is the singleton with the currently selected list item when the list view control has enabled its OwnerData property.

TOwnerDataListItem provides overridden methods which allow the list item to be maintained in an item cache instead of the Items collection for the list view control. The class instance is, however, still owned by the TListItems collection in the list view control.

An internal TOwnerDataListItem instance is allocated in the TCustomListView constructor for use in the control.

See also

TCustomListView.OwnerData

  

Enables or disables owner data (virtual) mode for the list view control.

TCustomListView.Items

  

Collection of list items displayed on the list view control.

TListItems

  

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

TListItems

  

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


Version 3.2 Generated 2024-02-25 Home