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);
プロパティ
| 種類 | 可視性 | ソース | ユニット | 親 | 
|---|---|---|---|---|
| function | public | FMX.Presentation.Factory.pas FMX.Presentation.Factory.hpp | FMX.Presentation.Factory | TPresentationProxyFactory | 
説明
指定された AControlClass コントロール メタクラスの名前、および指定された AControlType コントロール タイプから、プレゼンテーション プロキシ クラス名を生成します。
GeneratePresentationName は、次のアルゴリズムを使用して、プレゼンテーション プロキシ クラス名を生成します:
- 指定された AControlClassコントロール クラスから最初のTの文字を取ります。
- 指定された AControlTypeに従い、次の接尾辞をつけます:- -Styledを- AControlType = Styledの場合に。
- -Platformを- AControlType = Platformの場合。
 
たとえば、AControlClass = TMyPresentedControl なら:
| AControlType | 生成されるプレゼンテーション プロキシ クラス名 | 
|---|---|
| Styled | MyPresentedControl-Styled | 
| Platform | MyPresentedControl-Platform |