System.Classes.TStrings.EndUpdate

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure EndUpdate;

C++

void __fastcall EndUpdate();

Properties

Type Visibility Source Unit Parent
procedure
function
public
System.Classes.pas
System.Classes.hpp
System.Classes TStrings

Description

Enables the TStrings object to keep track of when the list of strings has finished changing.

EndUpdate is called automatically by any property or method that changes the list of strings. Call BeginUpdate before directly modifying the strings in the list, and EndUpdate after. When implementing properties or methods that change the list in descendants of TStrings, call BeginUpdate before the changes are made, and EndUpdate when the changes are complete.

TStrings simply keeps track of when the list of strings is being changed. Some descendants of TStrings use this information to perform certain actions, such as telling a control to repaint, when updates are complete.

See Also

Code Examples