FMX.Types.RegisterFmxClasses

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure RegisterFmxClasses(const RegClasses: array of TPersistentClass;
const GroupClasses: array of TPersistentClass);
procedure RegisterFmxClasses(const RegClasses: array of TPersistentClass);

C++

extern DELPHI_PACKAGE void __fastcall RegisterFmxClasses(System::Classes::TPersistentClass const *RegClasses, const System::NativeInt RegClasses_High, System::Classes::TPersistentClass const *GroupClasses, const System::NativeInt GroupClasses_High)/* overload */;

Properties

Type Visibility Source Unit Parent
procedure
function
public
FMX.Types.pas
FMX.Types.hpp
FMX.Types FMX.Types

Description

Registers a set of FireMonkey classes and adds a set of classes to the FireMonkey group objects.

RegClasses specifies the set of FireMonkey classes that need to be registered. The classes to be registered must be descendants of TPersistent.

GroupClasses specifies the set of FireMonkey classes to be added to the group where TFmxObject resides.

The classes to be registered or grouped must be descendants of TPersistent.

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

The GroupClasses classes are added to the group where TFmxObject resides by calling GroupDescendentsWith.

To just register a set of classes, call RegisterFmxClasses with an empty array as the GroupClasses parameter, or call the second overloaded RegisterFmxClasses method.

See Also

Code Examples