FMX.ListView.Appearances.TAppearancesRegistry.RegisterAppearance

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

class procedure RegisterAppearance(const AFactory: TItemAppearanceObjectsClass; const ADisplayName: string;
AOptions: TRegisterAppearanceOptions = [TRegisterAppearanceOption.Item]; const AUnitName: string = ''); overload;

C++

__classmethod void __fastcall RegisterAppearance(const TItemAppearanceObjectsClass AFactory, const System::UnicodeString ADisplayName, TRegisterAppearanceOptions AOptions = (TRegisterAppearanceOptions() << TRegisterAppearanceOption::Item ), const System::UnicodeString AUnitName = System::UnicodeString())/* overload */;

Properties

Type Visibility Source Unit Parent
procedure
function
public
FMX.ListView.Appearances.pas
FMX.ListView.Appearances.hpp
FMX.ListView.Appearances TAppearancesRegistry

Description

Registers an appearance with the specified data.

The registry only contains one appearance per appearance factory. When you register an appearance with an appearance factory that already exists in the global registry, you overwrite the existing appearance with your new appearance.

The following table shows how the specified parameters are mapped to the resulting instance of TRegisteredAppearance that you can later retrieve using GetRegisteredAppearances or FindItemAppearanceObjectsClassByOption:

Parameter TRegisteredAppearance Field

AFactory

Value

ADisplayName

Name

AOptions

Options

AUnitName

UnitName

See Also