Xml.XMLDoc.TXMLNode.ChildListNotify

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure ChildListNotify(Operation: TNodeListOperation; var Node: IXMLNode;  const IndexOrName: OleVariant; BeforeOperation: Boolean); virtual;

C++

virtual void __fastcall ChildListNotify(TNodeListOperation Operation, Xml::Xmlintf::_di_IXMLNode &Node, const System::OleVariant &IndexOrName, bool BeforeOperation);

Properties

Type Visibility Source Unit Parent
procedure
function
protected
Xml.XMLDoc.pas
Xml.XMLDoc.hpp
Xml.XMLDoc TXMLNode

Description

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

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.

See Also