FMX.Presentation.Style.TStyledPresentation.Create
Delphi
constructor Create(AOwner: TComponent); overload; override;
constructor Create(AOwner: TComponent; const AModel: TDataModel; const AControl: TControl); overload; virtual;
C++
__fastcall virtual TStyledPresentation(System::Classes::TComponent* AOwner)/* overload */;
__fastcall virtual TStyledPresentation(System::Classes::TComponent* AOwner, Fmx::Controls::Model::TDataModel* const AModel, Fmx::Controls::TControl* const AControl)/* overload */;
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
constructor | public | FMX.Presentation.Style.pas FMX.Presentation.Style.hpp |
FMX.Presentation.Style | TStyledPresentation |
Description
Creates a styled presentation object having the specified AOwner
owner and AModel
TDataModel for the specified AControl
presented control.
The class of the specified data model must match DefineModelClass. Otherwise, Create raises the EPresentationWrongModel exception with the following message:
Model is not a valid class. Expected [<DefineModelClass.ClassName>], but received [<AModel.ClassName>]