FMX.ListView.Appearances.TAppearancesRegistry.RegisterAppearances

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

class procedure RegisterAppearances(AFactories: TArray<TItemAppearanceObjectsClass>; ADisplayNames: TArray<string>;  AOptions: TRegisterAppearanceOptions = [TRegisterAppearanceOption.Item]; const AUnitName: string = ''); overload;

C++

__classmethod void __fastcall RegisterAppearances(System::DynamicArray<TItemAppearanceObjectsClass> AFactories, System::DynamicArray<System::UnicodeString> ADisplayNames, 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 a set of appearances that share the same unit name and appearance options.

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 AFactories and ADisplayNames arrays must contain the same number of items. For each item, RegisterAppearances registers one appearance with the corresponding values of each array.

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

Parameter TRegisteredAppearance Field

AFactories (one item)

Value

ADisplayNames (one item)

Name

AOptions

Options

AUnitName

UnitName

See Also