RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TXMLNodeCollection.InsertInCollection Method

Copies a child node from the ChildNodes property to the List property.

Pascal
procedure InsertInCollection(Node: IXMLNode; Index: Integer);
C++
__fastcall InsertInCollection(IXMLNode Node, int Index);

Applications can't call this protected method. It is called automatically when nodes are added to the ChildNodes property list. 

Node is the node that was just added to the ChildNodes property. 

Index is the index of Node in the ChildNodes property. 

InsertInCollection first checks whether Node belongs in the collection. If so, it adds it to the List property in the position that corresponds to Index (that is, in the index of Node when you ignore all the nodes in ChildNodes that do not belong in the collection.) 

 

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