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

TMethodList.Remove

Removes the specified method from the items in the list.

Declaration

Source position: lazmethodlist.pas line 53

public procedure TMethodList.Remove(

  const AMethod: TMethod

);

Arguments

AMethod

  

Method to remove from the items in the list.

Description

Remove is a procedure used to remove the TMethod instance specified in AMethod from the Items in the list. Remove ensures that memory has been allocated for the list, and calls the IndexOf method to locate the specified method instance in AMethod. When it exists in the Items property, the Delete method is called to delete the method at the required ordinal position.

See also

TMethodList.Items

  

Provides indexed access to methods in the list.

TMethodList.IndexOf

  

Gets the position where the specified method is stored in the list.

TMethodList.Delete

  

Deletes the method stored at the specified position.


Version 4.0 Generated 2025-05-03 Home