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