Xml.XMLDoc.TXMLNodeCollection.Count

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property Count: Integer read GetCount;

C++

__property int Count = {read=GetCount, nodefault};

Properties

Type Visibility Source Unit Parent
property protected
Xml.XMLDoc.pas
Xml.XMLDoc.hpp
Xml.XMLDoc TXMLNodeCollection

Description

Indicates the number of repeating child nodes.

Use the IXMLNodeCollection interface to read this protected property. Count is the number of child nodes for this node that are repetitions of the repeating child node type. That is, Count is the number of nodes in the List property.

Use Count to obtain an upper limit when addressing child nodes by index (for example, when iterating over all nodes in using the GetNode method).

Count is changed when you add child nodes using the AddChild method or delete them using the Delete or Remove method. You can access the individual repeating child nodes using the GetNode method.

See Also