System.Classes.TStringList.OnChange

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property OnChange: TNotifyEvent read FOnChange write FOnChange;

C++

__property TNotifyEvent OnChange = {read=FOnChange, write=FOnChange};

Properties

Type Visibility Source Unit Parent
event public
System.Classes.pas
System.Classes.hpp
System.Classes TStringList

Description

Occurs immediately after the list of strings changes.

Write an OnChange event handler to respond to changes in the list of strings. For example, if the string list is associated with a control, the OnChange event handler could tell the control to repaint itself whenever the content of the list changes.

Whenever strings in the list are added, deleted, moved, or modified, the following events take place:

  1. An OnChanging event occurs before the change.
  2. The strings are added, deleted, moved, or modified.
  3. An OnChange event occurs.

Note: OnChange occurs for every change made to the list, regardless of whether the application calls BeginUpdate and EndUpdate around a series of changes.

OnChange is an event handler of type System.Classes.TNotifyEvent.

See Also

Code Examples