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

TDOMNodeAllChildEnumerator

[Properties (by Name)] [Methods (by Name)] [Events (by Name)]

Implements an enumerator that visits all Children in the sub-tree for a DOM node.

Declaration

Source position: laz2_dom.pas line 212

type TDOMNodeAllChildEnumerator = class

public

  constructor Create();

  

Constructor for the class instance.

  function MoveNext;

  

Gets the next DOM node for the enumerator.

  property Current: TDOMNode; [r]

  

Current DOM node selected in the enumerator.

  function GetEnumerator;

  

Gets the enumerator class instance.

end;

Inheritance

TDOMNodeAllChildEnumerator

  

Implements an enumerator that visits all Children in the sub-tree for a DOM node.

|

TObject

Description

TDOMNodeAllChildEnumerator is a class used to implement an enumerator for a specified DOM node that visits all child nodes in its sub-tree. The enumerator uses the GetNextNode method in TDOMNode to get the value in the Current property. This means it will recursively descend into ChildNodes, and is halted when the next sibling for the specified DOM node is reached.

Use the MoveNext method to get the next DOM node for the enumerator. Use the Current property to access the currently selected DOM node.

See also

TDOMNode.GetNextNode

  

Gets the next Child or Sibling node for the DOM node.


Version 3.2 Generated 2024-02-25 Home