API:System.WideStrings.TWideStringList.SetUpdateState

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure SetUpdateState(Updating: Boolean); override;

C++

virtual void __fastcall SetUpdateState(bool Updating);

Properties

Type Visibility Source Unit Parent
procedure
function
protected
System.WideStrings.pas
System.WideStrings.hpp
System.WideStrings TWideStringList

Description

Performs internal adjustments before or after a series of updates.

System.WideStrings.TWideStringList.SetUpdateState inherits from System.WideStrings.TWideStrings.SetUpdateState. All content below this line refers to System.WideStrings.TWideStrings.SetUpdateState.

Performs internal adjustments before or after a series of updates.

SetUpdateState is called at the beginning or end of a series of updates. When the BeginUpdate method is first called and the TWideStrings object is not already in the middle of an update, TWideStrings calls SetUpdateState internally, with Updating set to true. When the EndUpdate method is called and it cancels out the last unmatched call to BeginUpdate, TWideStrings calls SetUpdateState internally, with Updating set to false.

As implemented in TWideStrings, SetUpdateState does nothing. Descendant classes can override this method to optimize the response to updates.

See Also