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

TDOMNode.GetLevel

Gets the level in the DOM tree for the DOM node.

Declaration

Source position: laz2_dom.pas line 277

public function TDOMNode.GetLevel: SizeInt;

Function result

Number of parent nodes found in the DOM node hierarchy.

Description

GetLevel is a SizeInt function used to get the level for the current node in the DOM node hierarchy. The return value is determined by counting the number of ParentNode assignments starting with the current DOM node. A root-level node in a DOM document is at level 0 (zero).

See also

TDOMNode.ParentNode

  

DOM node that is the immediate ancestor of this node.


Version 3.2 Generated 2024-02-25 Home