Xml.XMLIntf.IXMLNodeList.UpdateCount

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property UpdateCount: Integer read GetUpdateCount;

C++

__property int UpdateCount = {read=GetUpdateCount};

Properties

Type Visibility Source Unit Parent
property public
Xml.XMLIntf.pas
Xml.XMLIntf.hpp
Xml.XMLIntf IXMLNodeList

Description

Indicates the number of times an application has called BeginUpdate without a matching call to EndUpdate.

UpdateCount keeps track of whether all update operations have been completed. When an application starts making changes to the list, it calls BeginUpdate, which increments UpdateCount. When those changes are complete, it calls EndUpdate, which decrements UpdateCount. Thus, UpdateCount allows calls to BeginUpdate and EndUpdate to be nested.

Applications can avoid responding to updates in a piecemeal fashion by checking UpdateCount and only responding when it is 0.

See Also