System.Classes.TObservers.CanObserve
Delphi
function CanObserve(const ID: Integer): Boolean; overload; virtual;
C++
virtual bool __fastcall CanObserve(const int ID)/* overload */;
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | System.Classes.pas System.Classes.hpp |
System.Classes | TObservers |
Description
CanObserve is a virtual method implemented in TComponent that needs to be overridden in order to specify the observers supported by your component.
For instance, a TCustomEdit supports EditLink and ControlValue observer IDs. You can add new observers by using TObserverMapping.