[Overview][Constants][Types][Classes][Procedures and functions][Index] |
Inserts a DOM Node prior to the reference DOM node.
Source position: laz2_dom.pas line 501
public function TDOMDocument.InsertBefore( |
NewChild: TDOMNode; |
RefChild: TDOMNode |
):TDOMNode; override; |
NewChild |
|
New DOM Node to include in the document. |
RefChild |
|
Reference DOM Node that determines the location for the new DOM node. |
DOM Node inserted in the method.
InsertBefore is an overridden method in TDOMDocument used to insert the DOM node specified in NewChild immediately before the node specified in RefChild.
InsertBefore checks the NodeType property in NewChild to ensure that the operation is valid for the node type. An EDOMHierarchyRequest exception is raised for either of the following conditions:
InsertBefore calls the inherited method using NewChild and RefChild as arguments.
|
Inserts a new child node immediately before the reference child node. |
|
|
Node type for the DOM Node. |
|
|
Exception raised when an inserted node is not valid for the Document Object Model (DOM). |
Version 3.2 | Generated 2024-02-25 | Home |