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

TDOMNode_WithChildren.InternalAppend

Performs actions needed to append the specified node to the ChildNodes.

Declaration

Source position: laz2_dom.pas line 334

public procedure TDOMNode_WithChildren.InternalAppend(

  NewChild: TDOMNode

);

Arguments

NewChild

  

New DOM Node appended to the DOM sub-tree.

Description

InternalAppend is a method used to perform actions needed to append the DOM node specified in NewChild to the child nodes for the class instance.

If the node has child nodes, as indicated by a value in FirstChild, PreviousSibling and NextSibling properties for the nodes are updated to reflect the new relationship in the node hierarchy.

If the node does not have any existing child nodes, the value in NewChild is assigned to the FirstChild property.

In both cases, NewChild is used as the LastChild for the class instance.

InternalAppend ensures that the ParentNode in NewChild is set to the current class instance.

InternalAppend is used in the implementation of the CloneChildren method.

See also

TDOMNode.FirstChild

  

Gets the first child node for the current node.

TDOMNode.LastChild

  

Gets the last child node for the current node.

TDOMNode.PreviousSibling

  

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

TDOMNode.NextSibling

  

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

TDOMNode.FParentNode

TDOMNode_WithChildren.CloneChildren

  

Makes a copy of child nodes in the specified DOM node.


Version 3.2 Generated 2024-02-25 Home