Sign in Join
FPDoc Onlineexperiment

TDOMNode.FindNode function

Member of TDOMNodepublicIn unit Laz2_DOM

Finds the Child Node with the specified name.

Declaration

pascal
function FindNode(const ANodeName: DOMString): TDOMNode; virtual

Arguments

ANodeName

Node Name to locate in the Child Nodes for the DOM Node.

Function result

DOM Node located with the specified name.

Description

FindNode is a TDOMNode function used to locate a child node in the class instance with the value in ANodeName in its NodeName property. The return value contains the TDOMNode instance with the specified name, or Nil if a node is not found with the specified name.

FindNode always returns Nil in TDOMNode since physical storage is not allocated in TDOMNode for child node instances. It must be overridden in a descendent class to performs actions needed for the DOM node specialization.

See also

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