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

TDOMNode.ParentNode

DOM node that is the immediate ancestor of this node.

Declaration

Source position: laz2_dom.pas line 263

public property TDOMNode.ParentNode : TDOMNode
  read FParentNode;

Description

ParentNode is a read-only TDOMNode property that represents the DOM node that is the immediate ancestor of this node. All nodes, except TDOMAttr, TDOMDocument, TDOMDocumentFragment, TDOMEntity, and TDOMNotation may have a parent.

The value in ParentNode is assigned when TDOMNode methods like InsertBefore, InternalAppend, and AppendChild are called. The value in ParentNode is cleared when the DetachChild method is called, or when ChildNodes are freed.

Use ChildNodes to access the DOM nodes that are the immediate descendants of this node. Use PreviousSibling and NextSibling to access the respective DOM nodes that exist at the same Level in the DOM tree.

See also

TDOMNode.InsertBefore

  

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

TDOMNode.AppendChild

  

Appends the specified node as a child in the current node.

TDOMNode.DetachChild

  

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

TDOMNode.ChildNodes

  

Provides access to the list of Child nodes for the current node.

TDOMNode.PreviousSibling

  

Previous DOM Node at the same level in the DOM tree.

TDOMNode.NextSibling

  

Next DOM Node at the same level in the DOM tree.

TDOMNode_WithChildren

  

Extends TDOMNode to allocate storage for child nodes.


Version 3.2 Generated 2024-02-25 Home