API:FMX.Edit.Style.TStyledEdit.Create
Delphi
constructor Create(AOwner: TComponent); override;
C++
__fastcall virtual TStyledEdit(System::Classes::TComponent* AOwner)/* overload */;
/* TStyledPresentation.Create */ inline __fastcall virtual TStyledEdit(System::Classes::TComponent* AOwner, Fmx::Controls::Model::TDataModel* const AModel, Fmx::Controls::TControl* const AControl)/* overload */ : Fmx::Presentation::Style::TStyledPresentation(AOwner, AModel, AControl) { }
Properties
| Type | Visibility | Source | Unit | Parent |
|---|---|---|---|---|
| constructor | public | FMX.Edit.Style.pas FMX.Edit.Style.hpp |
FMX.Edit.Style | TStyledEdit |
Description
Creates a styled presentation object having the specified AOwner owner and AModel TDataModel for the specified AControl presented control.
FMX.Edit.Style.TStyledEdit.Create inherits from FMX.Presentation.Style.TStyledPresentation.Create. All content below this line refers to FMX.Presentation.Style.TStyledPresentation.Create.
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>]