FMX.Presentation.Factory.TPresentationProxyFactory.GeneratePresentationName

From RAD Studio API Documentation
Jump to: navigation, search

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:

  1. Removes the first T character from the specified AControlClass control class.
  2. Depending on the specified AControlType, one of the following suffixes is appended:
    • "-Styled" for AControlType = Styled
    • "-Platform" for AControlType = Platform

For example, if AControlClass = TMyPresentedControl then:

AControlType Generated Presentation Proxy Class Name
Styled MyPresentedControl-Styled
Platform MyPresentedControl-Platform

See Also