API:Vcl.ValEdit.TValueListStrings.UpdateCount

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property UpdateCount: Integer read FUpdateCount;

C++

__property UpdateCount;

Properties

Type Visibility Source Unit Parent
property protected
Vcl.ValEdit.pas
Vcl.ValEdit.hpp
Vcl.ValEdit TValueListStrings

Description

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

Vcl.ValEdit.TValueListStrings.UpdateCount inherits from System.Classes.TStrings.UpdateCount. All content below this line refers to System.Classes.TStrings.UpdateCount.

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

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

When UpdateCount changes from 0 to 1, TStrings 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.

See Also