[Overview][Classes][Index] Reference for unit 'LazLinkedList' (#lazutils)

TLinkList.MoveToLast

Relocates the specified list item to the last (or terminal) node for the linked list.

Declaration

Source position: lazlinkedlist.pas line 50

public procedure TLinkList.MoveToLast(

  AnItem: TLinkListItem

);

Arguments

AnItem

  

Item moved to the last node in the linked list.

Description

MoveToLast is a procedure used to move the specified list item to the last (or terminal) node in the doubly linked list. No actions are performed in the method when AnItem is unassigned (contains Nil).

MoveToLast calls Unbind to ensure that AnItem is removed from the node traversal order in the linked list. MoveToLast calls AddAsLast to update the values in the Prior and Next properties in AnItem making it the terminal node in the traversal order.

See also

TLinkList.AddAsLast

  

Configures and adds the specified item as the terminal node for the doubly linked list.

TLinkListItem.Prior

  

Contains a reference to the previous item in the doubly linked list.

TLinkListItem.Next

  

Contains a reference to the next item in the doubly linked list.


Version 4.0 Generated 2025-05-03 Home