System.Classes.ClassGroupOf

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function ClassGroupOf(AClass: TPersistentClass): TPersistentClass;
function ClassGroupOf(Instance: TPersistent): TPersistentClass;

C++

extern DELPHI_PACKAGE TPersistentClass __fastcall ClassGroupOf(TPersistentClass AClass)/* overload */;

Properties

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

Description

Returns the group of persistent classes a specified class or instance belongs to.

The streaming system allows the classes that can be loaded and saved to be registered in separate groups. This allows the IDE to distinguish between multi-device and Windows-only classes.

StartClassGroup starts a new group. GroupDescendentsWith adds a class to an existing group.

ClassGroupOf returns the group that either a AClass class has been registered to, or the class of the specified Instance has been registered to.

See Also