FMX.Presentation.Factory.TPresentationProxyFactory.GeneratePresentationName
Delphi
class function GeneratePresentationName(const AControlClass: TClass; const AControlType: TControlType): string;
C++
__classmethod System::UnicodeString __fastcall GeneratePresentationName(const System::TClass AControlClass, const Fmx::Controls::TControlType AControlType);
Properties
| Type | Visibility | Source | Unit | Parent | 
|---|---|---|---|---|
| function | public | FMX.Presentation.Factory.pas FMX.Presentation.Factory.hpp | FMX.Presentation.Factory | TPresentationProxyFactory | 
Description
Generates a presentation proxy class name from the name of the specified AControlClass control metaclass and of the specified AControlType control type.
GeneratePresentationName generates a presentation proxy class name using the following algorithm:
- Removes the first Tcharacter from the specifiedAControlClasscontrol class.
- Depending on the specified AControlType, appends the suffix:- -Styledfor- AControlType = Styled
- -Platformfor- AControlType = Platform
 
For example, if AControlClass = TMyPresentedControl then:
| AControlType | Generated Presentation Proxy Class Name | 
|---|---|
| Styled | MyPresentedControl-Styled | 
| Platform | MyPresentedControl-Platform |