Sign in Join
FPDoc Onlineexperiment

TDOMNode.DetachChild function

Member of TDOMNodepublicIn unit Laz2_DOM

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

Declaration

pascal
function 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

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