Show: Delphi C++
Display Preferences

FMX.Presentation.Factory.TPresentationProxyFactory.Register

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure Register(const APresentationName: string; const APresentationProxyClass: TPresentationProxyClass); overload;
procedure Register(const AControlClass: TClass; const AControlType: TControlType;  const APresentationProxyClass: TPresentationProxyClass); overload;

C++

void __fastcall Register(const System::UnicodeString APresentationName, const Fmx::Controls::Presentation::TPresentationProxyClass APresentationProxyClass)/* overload */;
void __fastcall Register(const System::TClass AControlClass, const Fmx::Controls::TControlType AControlType, const Fmx::Controls::Presentation::TPresentationProxyClass APresentationProxyClass)/* overload */;

Properties

Type Visibility Source Unit Parent
procedure
function
public
FMX.Presentation.Factory.pas
FMX.Presentation.Factory.hpp
FMX.Presentation.Factory TPresentationProxyFactory

Description

Attempts to register the specified APresentationProxyClass presentation proxy class with the specified APresentationName name or with the presentation name generated from the specified combination of the AControlClass control class and AControlType control type.

Register raises an EPresentationProxy exception if:

  • The specified APresentationProxyClass is nil.
  • The factory already contains a registered APresentationProxyClass presentation proxy class with the specified APresentationName name.
  • The specified APresentationName name is empty.

The second version of Register calls GeneratePresentationName to generate a presentation name from the specified AControlClass control class and AControlType control type.

See Also

Personal tools
In Other Languages
Previous Versions
Assistance