TMethodList.RemoveAllMethodsOfObject procedure
Removes methods from the list if they are for the specified object.
Declaration
procedure RemoveAllMethodsOfObject(const AnObject: TObject)Arguments
AnObject | Object compared to the entries in the list. |
Description
RemoveAllMethodsOfObject is a procedure used to remove methods in
the Items property which belong to the object instance specified in AnObject.
RemoveAllMethodsOfObject iterates over the methods in the Items property (in
reverse order), and compares the object in AnObject to the TMethod.Data for
each of the store Items. When they refer to the same TObject instance, the
Delete method is called to remove the method from Items.
No actions are performed in the method when memory has not been allocated to the Items property using the Add or Insert methods.
See also
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
