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

TDOMNode.HasChildNodes

Indicates if the DOM node has child nodes.

Declaration

Source position: laz2_dom.pas line 284

public function TDOMNode.HasChildNodes: Boolean; virtual;

Function result

True when the size of the ChildNodes list is not zero.

Description

HasChildNodes is a Boolean function which indicates if the DOM node has child nodes. In general, the return value is True when a DOM node has been assigned to the FirstChild property.

HasChildNodes always returns False in TDOMNode. TDOMNode does not allocate storage for child nodes. The method must be overridden in a descendent class which allocates storage for child nodes in the DOM node specialization.


Version 3.2 Generated 2024-02-25 Home