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

TDOMNamedNodeMap.FindSorted

Finds a DOM Node with the specified name in the sorted container.

Declaration

Source position: laz2_dom.pas line 393

protected function TDOMNamedNodeMap.FindSorted(

  const name: DOMString;

  out Index: LongWord

):Boolean;

Arguments

name

  

Name to locate in the sorted list.

Index

  

Ordinal position for the node in the sorted list.

Function result

True if a node with the specified name is found in the sorted list.

Description

Name is a DOMString value with the name for the DOM node to locate in the SortedItem container.

Index is an output parameter where the ordinal position in the sorted list is stored. The value is 0 (zero) if a DOM node with the specified name is not found in the sorted container.

The return value is True when a TDOMNode instance is located with the specified name. The return value is False if a DOM node with the specified name is not found in the sorted container.

Calls the CompareName method for each TDOMNode instance to compare the value in name to the NodeName property for the node.

See also

TDOMNamedNodeMap.SortedItem

  

Provides indexed access to the sorted DOM Nodes in the container.

TDOMNode.NodeName

  

Name for the DOM node.

TDOMNode.CompareName

  

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


Version 3.2 Generated 2024-02-25 Home