RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TXMLNode.AttributeListNotify Method

Responds to notifications of changes in the list of attributes.

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

Applications can't call this protected method. The class that implements the AttributeNodes property calls AttributeListNotify when attribute nodes are inserted or removed, or when a new attribute node needs to be created. AttributeListNotify 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 occurred. 

Node is the interface for the attribute node that was added or removed. If a new attribute node needs to be created, Node returns the new node. 

IndexOrName is the name of the attribute when Operation is nlCreateNode. 

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

 

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