RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TypInfo.GetPropInfos Function

Retrieves a list of component properties.

Pascal
procedure GetPropInfos(TypeInfo: PTypeInfo; PropList: PPropList);
C++
GetPropInfos(PTypeInfo TypeInfo, PPropList PropList);

GetPropInfos utilises Delphi's RTTI (Run Time Type Information) to retrieve a list of property information records for a component or component type.  

The TypeInfo defines the component type and PropList defines a variable to receive the list of properties : a pointer to a TPropList variable  

The Delphi inbuilt TypeInfo function may be used to provide the TypeInfo value.

Note: If you want the count of properties returned in PropList
, use GetPropList instead.  

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!