Sign in Join
FPDoc Onlineexperiment

TDOMNode.ChildNodes property

Member of TDOMNodepublicIn unit Laz2_DOM

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

Declaration

pascal
property ChildNodes: TDOMNodeList read GetChildNodes;

Description

ChildNodes is a read-only TDOMNodeList property used to provide access to the child nodes for the current DOM node. Reading the value in ChildNodes causes a TDOMNodeList to be created using the DOM tree in OwnerDocument. The list contains any DOM nodes found in OwnerDocument immediately below the current DOM node. If there are no child nodes for the current node, the list has a Length (or Count - they contain the same data) of 0 (zero). Use HasChildNodes to determine if the ChildNodes property contains any DOM nodes.

While ChildNodes is specified in TDOMNode, actually support for the list of child nodes is implemented in the TDOMNode_WithChildren descendant.

See also

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