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

TDOMNode_WithChildren.FreeChildren

Frees all Child nodes for the DOM node.

Declaration

Source position: laz2_dom.pas line 323

protected procedure TDOMNode_WithChildren.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

TDOMNode_WithChildren.DetachChild

  

Detached the specified DOM node from the sub-tree.

TDOMNode.FirstChild

  

Gets the first child node for the current node.

TDOMNode.LastChild

  

Gets the last child node for the current node.

TDOMNode.NextSibling

  

Next DOM Node at the same level in the DOM tree.

TDOMNode.ParentNode

  

DOM node that is the immediate ancestor of this node.


Version 3.2 Generated 2024-02-25 Home