Sign in Join
FPDoc Onlineexperiment

TLinkList.Delete procedure

Member of TLinkListpublicIn unit LazLinkedList

Removes the specified list item from the doubly linked list.

Declaration

pascal
procedure Delete(AnItem: TLinkListItem)

Arguments

AnItem

Item removed from the traversal nodes in the list.

Description

Delete is a procedure used to remove the specified list item from the traversal nodes in the doubly linked list. No actions are performed in the method when AnItem is unassigned (contains Nil).

Delete calls Unbind to update the traversal node for the affected list items. The Prior and Next nodes in AnItem are set to Nil to remove the item from the node order. Delete decrements the value in the Count property.

See also

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