FMX.Presentation.Style.TStyledPresentation.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.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