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

TDOMNode_WithChildren.CloneChildren

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

Declaration

Source position: laz2_dom.pas line 322

protected procedure TDOMNode_WithChildren.CloneChildren(

  ACopy: TDOMNode;

  ACloneOwner: TDOMDocument

);

Arguments

ACopy

  

DOM Node which receives the cloned child nodes.

ACloneOwner

  

DOM Document used to create the cloned child nodes.

Description

CloneChildren is a method used to clone child nodes from the current class instance to DOM node specified in ACopy.

CloneChildren visits each of the child nodes, starting at FirstChild and continuing to the value in the NextSibling property for the child node. The CloneNode method for each child node is called make a new copy (including its children) that is owned by the document in ACloneOwner. The cloned node is added to ACopy using the InternalAppend method.

No actions are performed in the method when the FirstChild property has not been assigned in the class instance.

See also

TDOMNode_WithChildren.InternalAppend

  

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

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.CloneNode

  

Makes a copy of the DOM node.

TDOMDocument

  

Implements the DOM Document interface.


Version 3.2 Generated 2024-02-25 Home