Skip to content

TInterfaceList.IndexOf

Returns the index of an interface.

Declaration

Source position: classesh.inc line 2264

public 
  function IndexOf(const item: IUnknown) : Integer;

Description

IndexOf is the implementation of the IInterfaceList.IndexOf method. It returns the zero-based index in the list of the indicated interface, or -1 if the index is not in the list.

See also

Name Description
IInterfaceList.IndexOf Return the index of an interface.
TList.IndexOf Returns the index of a given pointer.