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

TDOMNode_WithChildren.FindNode

Finds a DOM node with the specified value in its NodeName property.

Declaration

Source position: laz2_dom.pas line 333

public function TDOMNode_WithChildren.FindNode(

  const ANodeName: DOMString

):TDOMNode; override;

Arguments

ANodeName

  

Name for the DOM node to locate in the method.

Function result

DOM node with a name matching the requested value, or Nil.

Description

FindNode is a method used to search the child nodes in class instance for the node with the name specified in ANodeName. The search is started using the node in FirstChild, and calls the CompareName method to compare the value in ANodeNode to the NodeName property for each child node.

The return value contains the first TDOMNode with a node name that matches the requested value. The return value is Nil if a node is not found that matches the requested value, or when the class instance does not have any child nodes.

See also

TDOMNode.FindNode

  

Finds the Child Node with the specified name.

TDOMNode.CompareName

  

Compares the NodeName in the DOM Node to the specified value.

TDOMNode.NextSibling

  

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


Version 3.2 Generated 2024-02-25 Home