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

TMethodList.Delete

Deletes the method stored at the specified position.

Declaration

Source position: lazmethodlist.pas line 52

public procedure TMethodList.Delete(

  Index: Integer

);

Arguments

Index

  

Ordinal position for the method to delete from the list.

Description

Delete is a procedure used to delete the method stored at the specified ordinal position in the list. Delete decrements the internal member used for the Count function.

The method instance is physically removed from the list by moving memory allocated beyond the position in Index (if needed) to the requested position. ReAllocMem is called to resize allocated memory to accommodate the new number of items in the Count property.

Use Remove to delete a specific TMethod instance from the Items in the list.

See also

TMethodList.Items

  

Provides indexed access to methods in the list.

TMethodList.Count

  

Gets the number of items included in the method list.

TMethodList.Remove

  

Removes the specified method from the items in the list.


Version 4.0 Generated 2025-05-03 Home