FMX.Presentation.Factory.TPresentationProxyFactory.CreatePresentationProxy
Delphi
function CreatePresentationProxy<T: TPresentationProxy>(const APresentationName: string): T;
C++
template<typename T> T __fastcall CreatePresentationProxy(const System::UnicodeString APresentationName);
Properties
| Type | Visibility | Source | Unit | Parent |
|---|---|---|---|---|
| function | public | FMX.Presentation.Factory.pas FMX.Presentation.Factory.hpp |
FMX.Presentation.Factory | TPresentationProxyFactory |
Description
Returns a new instance of the presentation proxy class registered with the specified name, and casts the returned instance to T.
If the factory does not contain any presentation proxy class registered with the specified name, CreatePresentationProxy raises an EPresentationProxy exception.
If the specified T type is not compatible with the presentation proxy class that is registered with the specified name, CreatePresentationProxy returns nil.