IEvent<T> Interface
Definition
Represents a multicast event that provides adding and removing event handlers.
type IEvent<T> = interface(IEvent)
Type Parameters
- T
The event handler type must be an instance procedural type such as TNotifyEvent.
- Inheritance
- Derived
Properties
| CanInvoke |
Returns True when the event will do anything because it is Enabled and contains any event handler. Otherwise returns False . (Inherited from IEvent) |
| Enabled |
Gets the value indicates whether the multicast event is enabled, or sets the value to enable or disable the event. (Inherited from IEvent) |
| OnChanged | (Inherited from IEvent) |
| UseFreeNotification |
Specifies if the event internally tracks if the event handlers are implemented by a TComponent descendant and automatically unsubscribes those when the implementing component is being destroyed. (Inherited from IEvent) |
Methods
| Add(T) |
Adds an event handler to the list. |
| Clear |
Clears all event handlers. (Inherited from IEvent) |
| GetCanInvoke | (Inherited from IEvent) |
| GetEnabled | (Inherited from IEvent) |
| GetOnChanged | (Inherited from IEvent) |
| GetUseFreeNotification | (Inherited from IEvent) |
| Remove(T) |
Removes an event handler if it was added to the event. |
| RemoveAll(Pointer) |
Removes all event handlers which were registered by an instance. (Inherited from IEvent) |
| SetEnabled(Boolean) | (Inherited from IEvent) |
| SetOnChanged(TNotifyEvent) | (Inherited from IEvent) |
| SetUseFreeNotification(Boolean) | (Inherited from IEvent) |