FMX.Presentation.Factory.TPresentationProxyFactory.Register
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 specified combination of the AControlClass
control class and AControlType
control type.
Register raises an EPresentationProxy exception if:
- The specified
APresentationProxyClass
isnil
. - The factory already contains a registered
APresentationProxyClass
presentation proxy class with the specifiedAPresentationName
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.