RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TXMLNodeCollection.Count Property

Indicates the number of repeating child nodes.

Pascal
property Count: Integer;
C++
__property int Count;

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. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!