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

TDOMNode.DetachChild

Detaches the specified child node from the DOM sub-tree for the node.

Declaration

Source position: laz2_dom.pas line 281

public function TDOMNode.DetachChild(

  OldChild: TDOMNode

):TDOMNode; virtual;

Arguments

OldChild

  

DOM Node to locate in the DOM sub-tree.

Function result

The DOM Node detached in the method.

Description

DetachChild is a TDOMNode function used to detach a specified child node from the DOM sub-tree for the current node. OldChild is the DOM node to remove from the DOM sub-tree. The return value contains the detached DOM node.

TDOMNode specifies the DetachChild method, but does not provide physical storage for child nodes. As a result, it always raises an EDOMNotFound exception in the method. DetachChild must be re-implemented in a descendent class as required for other DOM Node specializations.

See also

TDOMNode_WithChildren.DetachChild

  

Detached the specified DOM node from the sub-tree.

TDOMNode.NodeType

  

Node type for the DOM Node.


Version 3.2 Generated 2024-02-25 Home