Xml.XMLDoc.TXMLNodeCollection.InsertInCollection

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure InsertInCollection(Node: IXMLNode; Index: Integer);

C++

void __fastcall InsertInCollection(Xml::Xmlintf::_di_IXMLNode Node, int Index);

Properties

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

Description

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

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.)

See Also