RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TXMLNodeCollection.ChildListNotify Method

Responds to notifications of changes in the list of child nodes.

Pascal
procedure ChildListNotify(Operation: TNodeListOperation; var Node: IXMLNode; const IndexOrName: OleVariant; BeforeOperation: Boolean); override;
C++
virtual __fastcall ChildListNotify(TNodeListOperation Operation, IXMLNode Node, const OleVariant IndexOrName, Boolean BeforeOperation);

Applications can't call this protected method. The class that implements the ChildNodes property calls ChildListNotify when child nodes are inserted, removed, or need to be created. ChildListNotify calls the inherited method to generate a BeforeNodeChange or AfterNodeChange event and to ensure that the DOM implementation for this node reflects the change. After calling the inherited method, ChildListNotify updates the List property so that it stays in sync with the ChildNodes property.  

Operation indicates what type of change is about to occur. 

Node is the interface for the child node that is added or removed. If Operation is nlCreateNode, Node returns a newly created child node. 

IndexOrName is the index of the node that is added or removed when Operation is nlInsert or nlRemove. When Operation is nlCreateNode, IndexOrName is the name or value of the new node to create. 

BeforeOperation indicates whether the call occurs before or after the change. 

 

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