FMX.Presentation.Style.TStyledPresentation.GetModel

From Appmethod Libraries
Jump to: navigation, search

Object Pascal

function GetModel<T: TDataModel>: T;

C++

template<typename T> T __fastcall GetModel(void);

Properties

Type Visibility Source Unit Parent
function protected
FMX.Presentation.Style.pas
FMX.Presentation.Style.hpp
FMX.Presentation.Style TStyledPresentation

Description

Tries to cast the current model to type T.

The GetModel method tries to cast the current model to type T and returns the type.

GetModel returns nil if the specified type T is not compatible with TDataModel.

See Also