RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TXMLNodeCollection.CreateItemList Method

Creates the object that implements the List property.

Pascal
procedure CreateItemList(CheckFirst: Boolean = False);
C++
__fastcall CreateItemList(Boolean CheckFirst = False);

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. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!