FMX.Controls.Presentation.TPresentedControl.GetModel
Delphi
function GetModel<T: TDataModel>: T;
C++
template<typename T> T __fastcall GetModel(void);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | protected | FMX.Controls.Presentation.pas FMX.Controls.Presentation.hpp |
FMX.Controls.Presentation | TPresentedControl |
Description
Returns the data model of your control casted as the specified T
class.
T
must be a subclass of TDataModel.