System.Classes.TCollection.UpdateCount

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property UpdateCount: Integer read FUpdateCount;

C++

__property int UpdateCount = {read=FUpdateCount, nodefault};

Properties

Type Visibility Source Unit Parent
property protected
System.Classes.pas
System.Classes.hpp
System.Classes TCollection

Description

Counts the number of times BeginUpdate was called without a corresponding call to EndUpdate.

UpdateCount keeps track of calls to BeginUpdate and EndUpdate so that they can be nested. Every call to BeginUpdate increments UpdateCount. Every call to EndUpdate decrements it. When UpdateCount returns to 0, the collection updates itself to reflect all changes that occurred since the first call to BeginUpdate.

See Also