System.Classes.TList.Notify
Delphi
procedure Notify(Ptr: Pointer; Action: TListNotification); virtual;
C++
virtual void __fastcall Notify(void * Ptr, TListNotification Action);
プロパティ
種類 | 可視性 | ソース | ユニット | 親 |
---|---|---|---|---|
procedure function |
protected | System.Classes.pas System.Classes.hpp |
System.Classes | TList |
説明
項目がリストに追加されるか,リストから削除されるか,リストから取得されたときに応答します。
Notify メソッドは,コレクション内の項目が変更されると自動的に呼び出されます。
Ptr は,変更によって影響を受けた項目を指します。
Action は変更を示します。
TList で実装した Notify は何もしません。下位クラスでは,Notify をオーバーライドして,変更通知への適切な応答を実装できます。