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

TDOMNode_WithChildren.GetChildCount

Gets the number of child nodes for the DOM node instance.

Declaration

Source position: laz2_dom.pas line 332

public function TDOMNode_WithChildren.GetChildCount: SizeInt; override;

Function result

Number of child nodes in the DOM node.

Description

GetChildCount is an overridden SizeInt function in TDOMNode_WithChildren. It is used to get the number of child nodes for the class instance. No actions are performed in the method if FirstChild has not been assigned, and the return value is set to 0.

If a DOMNodeList has been assigned to ChildNodes, its Count property is used as the return value. If ChildNodes has not been assigned, the child nodes are visited (starting at FirstChild and proceeding to its NextSibling) to count the number of child nodes.

See also

TDomNode.ChildNodes

  

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

TDomNode.FirstChild

  

Gets the first child node for the current node.


Version 3.2 Generated 2024-02-25 Home