System.Contnrs.TClassList.IndexOf

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function IndexOf(AClass: TClass): Integer; inline;

C++

HIDESBASE int __fastcall IndexOf(System::TClass AClass);

Properties

Type Visibility Source Unit Parent
function public
System.Contnrs.pas
System.Contnrs.hpp
System.Contnrs TClassList

Description

Returns the index of the first occurrence in the list of a specified class.

Call IndexOf to get the index for a class in the Items array. The first class in the array has index 0, the second class has index 1, and so on.

If a class is not in the list, IndexOf returns -1. If a class appears more than once in the list, IndexOf returns the index of the first appearance.

See Also