FMX.Controls.Presentation.TPresentedControl.GetModel

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function GetModel<T: TDataModel>: T;

C++

template<typename T> T __fastcall GetModel();

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.

See Also