FMX.Presentation.Style.TStyledPresentation.Create

From Appmethod Libraries
Jump to: navigation, search

Object Pascal

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 an instance of TStyledPresentation with the specified owner, data model, and presented control.

The class of the specified data model must match DefineModelClass. Otherwise, Create raises an EPresentationWrongModel exception with the following message:

Model is not a valid class. Expected [<DefineModelClass.ClassName>], but received [<AModel.ClassName>]

See Also