RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TWideStrings.UpdateCount Property

Indicates the number of calls to BeginUpdate that have not been matched by a call to EndUpdate.

Pascal
property UpdateCount: Integer;
C++
__property int UpdateCount;

TWideStrings uses UpdateCount to keep track of calls to the BeginUpdate and EndUpdate methods. Every time a call is made to BeginUpdate, TWideStrings increments the value of UpdateCount. Every call to EndUpdate causes TWideStrings to decrement UpdateCount. 

When UpdateCount changes from 0 to 1, TWideStrings calls the SetUpdateState method with a parameter of true. When UpdateCount changes from 1 to 0, TStrings calls the SetUpdateState method with a parameter of false. This allows descendant classes to perform optimizations when handling multiple updates. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!