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

TListItem.Delete

Removes the list item from the container.

Declaration

Source position: comctrls.pp line 1060

public procedure TListItem.Delete;

Description

Delete checks the internal TListItemFlags values for the class instance to ensure that Delete has not already been called for the list item.

If lifDestroying is not included in the flags, the Free method called to free the class instance. No actions are performed in the method if lifDestroying is already included in the flag values.

Delete is called from the Delete method in TListItems. It is also called when TListItems is notified that the list item has been freed in Destroy.

See also

TListItem.Destroy

  

Destructor for the class instance.

TListItems.Delete

  

Removes the list item specified in AIndex from the container.

TListItemFlags

  

Set type used to store TListItemFlag enumeration values.


Version 3.2 Generated 2024-02-25 Home