Sign in Join
FPDoc Onlineexperiment

TDOMNode_WithChildren.FreeChildren procedure

Member of TDOMNode_WithChildrenprotectedIn unit Laz2_DOM

Frees all Child nodes for the DOM node.

Declaration

pascal
procedure FreeChildren

Description

FreeChildren is a method used to free all child nodes in the current class instance.

FreeChildren visits each of the child nodes, starting at FirstChild and continuing to the NextSibling for the child node. The TDOMNode instance that is the child is freed before continuing to the next sibling node.

FreeChildren sets the value in the FirstChild and LastChild properties to Nil prior to exit.

See also

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