Sign in Join
FPDoc Onlineexperiment

TDOMNode.GetLastLeaf function

Member of TDOMNodepublicIn unit Laz2_DOM

Gets the last node in the DOM sub-tree for the current node.

Declaration

pascal
function GetLastLeaf: TDOMNode

Function result

Last node in the DOM sub-tree for the current node.

Description

GetLastLeaf is a TDOMNode function used to the last node in the DOM node hierarchy for the current node.

The return value is Nil when LastChild has not been assigned for the current node. Otherwise, LastChild is called recursively until the given descendent node has no child nodes.

GetLastLeaf is used to implement the GetPreviousNode method.

See also

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