System.Contnrs.TClassList.Extract

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function Extract(Item: TClass): TClass; inline;

C++

HIDESBASE System::TClass __fastcall Extract(System::TClass Item);

Properties

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

Description

Removes a class from the list.

Call Extract to remove a class from the list. After the class is removed, all the classes that follow it are moved up in index position and Count is decremented.

In TClassList, Extract does the same thing as the Delete method, except that it returns the class that was removed from the list.

To remove the reference to a class without deleting the entry from the Items array and changing the Count, set the Items property for Index to nil (Delphi) or NULL (C++).

See Also