System.TypInfo.TPropInfo
Delphi
TPropInfo = packed record
PropType: PPTypeInfo;
GetProc: Pointer;
SetProc: Pointer;
StoredProc: Pointer;
Index: Integer;
Default: Integer;
NameIndex: SmallInt;
Name: TSymbolName;
function NameFld: TTypeInfoFieldAccessor; inline;
function Tail: PPropInfo; inline;
end;
C++
struct DECLSPEC_DRECORD TPropInfo
{
public:
PTypeInfo *PropType;
void *GetProc;
void *SetProc;
void *StoredProc;
int Index;
int Default;
short NameIndex;
TSymbolName Name;
TTypeInfoFieldAccessor __fastcall NameFld();
PPropInfo __fastcall Tail();
};
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
record struct |
public | System.TypInfo.pas System.TypInfo.hpp |
System.TypInfo | System.TypInfo |
Description
TPropInfo is a record of component property type information.
TPropInfo is principally used to hold the results of a call to GetPropInfo. It provides meta details about a component property as part of Delphi's RTTI (Run Time Type Information) mechanism, giving run time component property processing. This allows for more generalised component handling that avoids excessive hard coded values.
The TPropInfo fields have the foillowing meanings :
Field | Meaning |
---|---|
PropType |
Points to a data structure that gives information about the property type. |
GetProc |
Method pointer for the method that gets the component property value. |
SetProc |
Method pointer for the method that sets the component property value. |
Index |
The index of the property. It is used as a parameter to the GetProc and SetProc methods on indexed properties. |
Default |
The default value of the property. |
NameIndex |
The offset into the Name field where the property's name starts. |
Name |
The qualified property name. |