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

TDOMNode.InsertBefore

Inserts a new child node immediately before the reference child node.

Declaration

Source position: laz2_dom.pas line 279

public function TDOMNode.InsertBefore(

  NewChild: TDOMNode;

  RefChild: TDOMNode

):TDOMNode; virtual;

Arguments

NewChild

  

New DOM node to insert into the child nodes.

RefChild

  

Reference node where the new node is inserted.

Function result

DOM node inserted in the method.

Description

InsertBefore is a TDOMNode function used to insert a new child node immediately before the referenced child node. In TDOMNode, InsertBefore always raises an EDOMHierarchyRequest exception. The method must be re-implemented in descendent classes which support child nodes in the DOM Node specialization.

Errors

Raises an EDOMHierarchyRequest exception; must be re-implemented in descendent classes.


Version 3.2 Generated 2024-02-25 Home