[Overview][Classes][Procedures and functions][Index] Reference for unit 'LazMethodList' (#lazutils)

TMethodList.RemoveAllMethodsOfObject

Removes methods from the list if they are for the specified object.

Declaration

Source position: lazmethodlist.pas line 58

public procedure TMethodList.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

TMethodList.Items

  

Provides indexed access to methods in the list.

TMethodList.Delete

  

Deletes the method stored at the specified position.

TMethod


Version 3.2 Generated 2024-02-25 Home