TMethodList.IndexOf function
Gets the position where the specified method is stored in the list.
Declaration
function IndexOf(const AMethod: TMethod): IntegerDescription
IndexOf is an
Integer function used to get the ordinal
position in Items where the TMethod instance in AMethod is stored.
IndexOf examines the memory allocated for the Items property. When memory has not been allocated (no methods have been added to the list), the return value is -1. Otherwise, values in the Items property are compared to the TMethod instance in AMethod. The return value is set to the ordinal position in Items where AMethod was located. The return value is in the range 0..Count-1.
See also
An experiment, built from Lazarus main 2dfa93c66e of 10-22-2026. Not the official Lazarus documentation.
