System.Classes.RegisterClasses

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure RegisterClasses(const AClasses: array of TPersistentClass);

C++

extern DELPHI_PACKAGE void __fastcall RegisterClasses(TPersistentClass const *AClasses, const int AClasses_High);

Properties

Type Visibility Source Unit Parent
procedure
function
public
System.Classes.pas
System.Classes.hpp
System.Classes System.Classes

Description

Registers a set of classes.

Call RegisterClasses to register a set of custom classes in a single line. Each class is registered by calling RegisterClass. Unregistered classes can't be loaded or saved by the component streaming system.

Note: In C++, the AClasses parameter identifies the classes to be registered These must be descendants of TPersistent. The AClasses_Size parameter indicates the index of the last class in AClasses (one less than the total number of classes).

See Also

Code Examples