FMX.Presentation.Factory.TPresentationProxyFactory.CreatePresentationProxy

From RAD Studio API Documentation
Jump to: navigation, search

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

Retrieves the presentation proxy class registered with the specified APresentationName name in the Presentation Proxy Factory, creates an object of this presentation proxy class, casts the created object to the specified T generic type, and returns the obtained presentation proxy.

Call CreatePresentationProxy to create the presentation proxy for each presentation used with a presented control.

If the factory does not contain any presentation proxy class registered with the specified APresentationName name, CreatePresentationProxy raises the EPresentationProxy exception.

The specified T generic type should be compatible with the presentation proxy class that is registered with the specified APresentationName name.

See Also