FMX.Presentation.Factory.TPresentationProxyFactory.Replace
Delphi
procedure Replace(const APresentationName: string; const APresentationProxyClass: TPresentationProxyClass); overload;
procedure Replace(const AControlClass: TClass; const AControlType: TControlType; const APresentationProxyClass: TPresentationProxyClass); overload;
C++
void __fastcall Replace(const System::UnicodeString APresentationName, const Fmx::Controls::Presentation::TPresentationProxyClass APresentationProxyClass)/* overload */;
void __fastcall Replace(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
Replaces an existing presentation proxy class with a new one.
You may specify the existing presentation proxy class in one of the following ways:
- By name (
APresentationName
). - By the class (
AControlClass
) and the type (AControlType
) of the control.
The parameter APresentationProxyClass
is the new presentation proxy class.