help files
Z505 | PasWiki | FUQ | Search | Main Docs | API Guide



[Overview][Constants][Types][Classes][Procedures and functions] Reference for unit 'typinfo' (#rtl)

GetPropInfo

Return property type information, by property name.

Declaration

Source position: line 0

function GetPropInfo(

  TypeInfo: PTypeInfo;

  const PropName: String

):PPropInfo;

function GetPropInfo(

  TypeInfo: PTypeInfo;

  const PropName: String;

  AKinds: TTypeKinds

):PPropInfo;

function GetPropInfo(

  Instance: TObject;

  const PropName: String;

  AKinds: TTypeKinds

):PPropInfo;

function GetPropInfo(

  Instance: TObject;

  const PropName: String

):PPropInfo;

function GetPropInfo(

  AClass: TClass;

  const PropName: String;

  AKinds: TTypeKinds

):PPropInfo;

function GetPropInfo(

  AClass: TClass;

  const PropName: String

):PPropInfo;

Description

GetPropInfo returns a pointer to the TPropInfo record for a the PropName property of a class. The class to examine can be specified in one of three ways:

Instance
An instance of the class.
AClass
A class pointer to the class.
TypeInfo
A pointer to the type information of the class.

In each of these three ways, if AKinds is specified, if the property has TypeKind which is not included in Akinds, Nil will be returned.

For an example, see most of the other functions.

Errors

If the property PropName does not exist, Nil is returned.

See also

GetPropInfos

  

Return a list of published properties.

GetPropList

  

Return a list of a certain type of published properties.

Notes

 No notes exist for this page yet. 





lufdoc, Powtils, fpc, freepascal, delphi, kylix, c/c++, mysql, cgi web framework docs, Z505