System.Classes.TCollection.Changed

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure Changed;

C++

void __fastcall Changed();

Properties

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

Description

Responds when the collection or any of its items changes.

Changed is called automatically when items in the collection change or when the EndUpdate method signals that an update is complete. It checks the value of UpdateCount, and if it is 0, calls the Update method, which performs any necessary updates.

When writing a TCollection descendant, there is no need to call Changed. Instead, bracket any changes by calls to BeginUpdate and EndUpdate.

See Also