RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TXMLNodeList.DoNotify Method

Executes the callback specified by NotificationProc.

Pascal
function DoNotify(Operation: TNodeListOperation; const Node: IXMLNode; const IndexOrName: OleVariant; BeforeOperation: Boolean): IXMLNode;
C++
__fastcall IXMLNode DoNotify(TNodeListOperation Operation, const IXMLNode Node, const OleVariant IndexOrName, Boolean BeforeOperation);

DoNotify executes the callback that is assigned to NotificationProc when the list adds, deletes, or needs to create nodes in the list. The parameters are supplied as parameters to the callback, and DoNotify returns the node that was added, deleted, or created. 

Operation indicates what change is about to occur or has just occurred. 

Node is the node that is being added or removed from the list, or that acts as a parent if the callback must create a node (when Operation is nlCreateNode). 

IndexOrName is the name of the node to be created when Operation is nlCreateNode. Otherwise, it is the name or index of the node being deleted or added. 

BeforeOperation indicates whether the call occurs before the indicated operation or after. When nodes are inserted and removed, a call is made first with BeforeOperation set to true, then the operation occurs, and then a second callback is made with BeforeOperation set to false. When nodes must be created, only one call is made, with BeforeOperation set to true. 

 

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