Xml.XMLDoc.TXMLNodeCollection.ChildListNotify

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

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

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 TXMLNodeCollection

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, 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.

See Also