Xml.XMLDoc.TXMLNodeCollection.CreateItemList

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure CreateItemList(CheckFirst: Boolean = False);

C++

void __fastcall CreateItemList(bool CheckFirst = false);

Properties

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

Description

Creates the object that implements the List property.

Applications can't call the protected CreateItemList method. It is used internally when TXMLNodeCollection needs to create a separate object to implement the List property. A separate implementation object is only needed if this node contains child nodes that are not in the collection. Otherwise, TXMLNodeCollection can simply use the ChildNodes property.

CheckFirst specifies whether CreateItemList should check whether the ChildNodes property currently includes any nodes that are not in the collection. When CheckFirst is true, CreateItemList first checks the ChildNodes property, and if all nodes are in the collection, it does not create a separate list to store the nodes of the collection. When CheckFirst is false (or when the ChildNodes property includes nodes that are not in the collection), CreateItemList instantiates a list to hold the nodes in the collection, and adds to it any nodes listed in ChildNodes that belong in the collection.

See Also