RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TXMLNode.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); virtual;
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 or removed, or when a node needs to be created. ChildListNotify generates a BeforeNodeChange or AfterNodeChange event on the document object, and, if the change has not yet occurred, updates the underlying DOM implementation to reflect the change. 

Operation indicates what type of change is occurring. 

Node is the interface for the child node about which this method is called. When nodes are added or removed, this is the node that is added or removed. When a node needs to be created, this parameter returns the newly created 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 of the child node to create. 

BeforeOperation indicates whether the call occurs before the child node is added or removed. 

 

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