System.TypInfo.GetTypeData

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function GetTypeData(TypeInfo: PTypeInfo): PTypeData;

C++

extern DELPHI_PACKAGE PTypeData __fastcall GetTypeData(PTypeInfo TypeInfo);

Properties

Type Visibility Source Unit Parent
function public
System.TypInfo.pas
System.TypInfo.hpp
System.TypInfo System.TypInfo

Description

Returns a pointer to information about a type.

GetTypeData utilises Delphi's RTTI (Run Time Type Information) to return a pointer to TTypeData record.

The TTypeData record is a variant type, but does not contain the variant as a tag. To identify which variant applies to a particular type, you should retrieve the TTypeKind value using the TypeInfo routine.

The TTypeData record holds meta data about a property. For example, the name of the unit a class type is stored in.

See Also